[Xfce4-commits] <ristretto:ristretto-0.3> Cleanup file-monitors on remove-all
Stephan Arts
noreply at xfce.org
Sat Mar 10 21:46:05 CET 2012
Updating branch refs/heads/ristretto-0.3
to b5a809944b5ea32abc937c22aa088858a308769b (commit)
from eb6a5e421fcc9fdf8703e4ebd0eb0764e09df77d (commit)
commit b5a809944b5ea32abc937c22aa088858a308769b
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 | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/image_list.c b/src/image_list.c
index 9d52341..ddf6786 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -429,6 +429,14 @@ static void
rstto_image_list_remove_all (RsttoImageList *image_list)
{
GSList *iter = NULL;
+
+ if (image_list->priv->image_monitors)
+ {
+ 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