[gimp/gimp-attributes-wip: 35/102] app: unref attributes



commit b613084add4016c80e1bb0d07ee212fabbe375c8
Author: Hartmut Kuhse <hk_priv gmx de>
Date:   Sun Feb 22 14:35:32 2015 +0100

    app: unref attributes

 app/core/gimpviewable.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpviewable.c b/app/core/gimpviewable.c
index 2d357cf..d36a3bb 100644
--- a/app/core/gimpviewable.c
+++ b/app/core/gimpviewable.c
@@ -1330,6 +1330,8 @@ gimp_viewable_set_attributes (GimpViewable   *viewable,
 
   if (attributes)
     {
+      if (viewable->attributes)
+        g_object_unref (viewable->attributes);
 
       viewable->attributes = attributes;
       g_object_ref (viewable->attributes);


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