[gnome-control-center] background: Fix memory leak in Pictures source



commit ed589cd5b83c719257d29a19f204392a556cadc3
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 2 16:29:46 2013 +0200

    background: Fix memory leak in Pictures source
    
    The enumerator was never unref'ed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709243

 panels/background/bg-pictures-source.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
index 7283239..dd3b9bd 100644
--- a/panels/background/bg-pictures-source.c
+++ b/panels/background/bg-pictures-source.c
@@ -428,6 +428,7 @@ dir_enum_async_ready (GObject      *source,
                                       priv->cancellable,
                                       file_info_async_ready,
                                       user_data);
+  g_object_unref (enumerator);
 }
 
 char *


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