[gnome-control-center] printers: Fix small memory leak



commit 82aa5d01306e8435aff4ccc2ab7832d9ca422915
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Mar 30 11:34:47 2012 +0200

    printers: Fix small memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673151

 panels/printers/pp-new-printer-dialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c
index 6302a74..eb134b5 100644
--- a/panels/printers/pp-new-printer-dialog.c
+++ b/panels/printers/pp-new-printer-dialog.c
@@ -374,6 +374,8 @@ devices_get_cb (GObject      *source_object,
                                      &value);
 
                       g_hash_table_insert (devices, key, value);
+
+                      g_variant_unref (item);
                     }
                 }
               g_variant_unref (devices_variant);



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