[Xfce4-commits] <ristretto:master> Cleanup file-monitors on remove-all

Stephan Arts noreply at xfce.org
Sat Mar 10 21:46:01 CET 2012


Updating branch refs/heads/master
         to 3045a75dd0274bb316346cee6cd513a2459e757a (commit)
       from 9d581bfe9fd32b1b18ed7e3c0841b25f71eabc20 (commit)

commit 3045a75dd0274bb316346cee6cd513a2459e757a
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat Mar 10 21:36:29 2012 +0100

    Cleanup file-monitors on remove-all

 src/image_list.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/image_list.c b/src/image_list.c
index 124ebf8..2d0b446 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -596,6 +596,10 @@ rstto_image_list_remove_all (RsttoImageList *image_list)
         image_iter = g_list_next (image_iter);     
     }
 
+    g_list_foreach (image_list->priv->image_monitors, (GFunc)g_object_unref, NULL);
+    g_list_free (image_list->priv->image_monitors);
+    image_list->priv->image_monitors = NULL;
+
     g_list_foreach (image_list->priv->images, (GFunc)g_object_unref, NULL);
     g_list_free (image_list->priv->images);
     image_list->priv->images = NULL;


More information about the Xfce4-commits mailing list