[Xfce4-commits] [apps/ristretto] 01/01: Fix more memory leaks

noreply at xfce.org noreply at xfce.org
Thu Apr 11 21:35:56 CEST 2019


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/ristretto.

commit 4efd8363a9e1c64751b5fc3a76c330f06d9dba9e
Author: Igor <f2404 at yandex.ru>
Date:   Thu Apr 11 15:35:47 2019 -0400

    Fix more memory leaks
---
 src/image_list.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/image_list.c b/src/image_list.c
index 012a26f..fcd7d15 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -403,7 +403,19 @@ rstto_image_list_dispose(GObject *object)
             g_object_unref (image_list->priv->filter);
             image_list->priv->filter= NULL;
         }
-        
+
+        if (image_list->priv->image_monitors)
+        {
+            g_list_free_full (image_list->priv->image_monitors, (GDestroyNotify) g_object_unref);
+            image_list->priv->image_monitors = NULL;
+        }
+
+        if (image_list->priv->images)
+        {
+            g_list_free_full (image_list->priv->images, (GDestroyNotify) g_object_unref);
+            image_list->priv->images = NULL;
+        }
+
         g_free (image_list->priv);
         image_list->priv = NULL;
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list