summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-05-26 13:12:25 +0100
committerRichard Hughes <richard@hughsie.com>2015-05-26 13:12:25 +0100
commit121e06d1aafd07118ee5e900623eca5e39cf5d40 (patch)
tree389419b09e1ec78939b24d347daf8c79f2c8017d
parent62fd1cb484908f3a8bc6c4fa6ee4ae6a3e35d386 (diff)
parent2a696f26a939f4cbc7ed5044da14d089820f9801 (diff)
downloadcolord-121e06d1aafd07118ee5e900623eca5e39cf5d40.tar.gz
Merge pull request #13 from LebedevRI/cd-context-fix-error-ctx-leak
Do not leak GError when using the LCMS context
-rw-r--r--lib/colord/cd-context-lcms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/colord/cd-context-lcms.c b/lib/colord/cd-context-lcms.c
index 45fcc87..9171e53 100644
--- a/lib/colord/cd-context-lcms.c
+++ b/lib/colord/cd-context-lcms.c
@@ -168,6 +168,7 @@ cd_context_lcms_free (gpointer ctx)
error_ctx = cmsGetContextUserData (ctx);
g_clear_error (error_ctx);
+ g_free (error_ctx);
cmsUnregisterPluginsTHR (ctx);
cmsDeleteContext (ctx);