[gimp] libgimpwidgets: gimppickbutton-quartz: do not release color_space



commit ce3899e722c8079f18508a892f91114ba1ca8417
Author: Kristian Rietveld <kris loopnest org>
Date:   Mon Mar 26 22:55:49 2018 +0200

    libgimpwidgets: gimppickbutton-quartz: do not release color_space
    
    The color_space reference should not be released because it was obtained
    with a Get-function, which means we do not have ownership.

 libgimpwidgets/gimppickbutton-quartz.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimppickbutton-quartz.c b/libgimpwidgets/gimppickbutton-quartz.c
index 1357d08..2556263 100644
--- a/libgimpwidgets/gimppickbutton-quartz.c
+++ b/libgimpwidgets/gimppickbutton-quartz.c
@@ -203,7 +203,6 @@
           g_free (buffer);
           CFRelease (icc_data);
         }
-      CFRelease (color_space);
     }
 
   gimp_rgba_set_uchar (&rgb, data[2], data[1], data[0], 255);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]