[gnome-settings-daemon/gnome-3-2] print-notifications: Fix a leak



commit b4a4e732715e01e85c5d9e49315802687f2445b6
Author: Marek Kasik <mkasik redhat com>
Date:   Tue Nov 8 18:18:46 2011 +0100

    print-notifications: Fix a leak
    
    Free old_state_reasons and new_state_reasons properly.

 .../gsd-print-notifications-manager.c              |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c b/plugins/print-notifications/gsd-print-notifications-manager.c
index 508796d..96285bc 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -681,6 +681,12 @@ on_cups_notification (GDBusConnection *connection,
                         }
                         g_slist_free (added_reasons);
                 }
+
+                if (new_state_reasons)
+                        g_strfreev (new_state_reasons);
+
+                if (old_state_reasons)
+                        g_strfreev (old_state_reasons);
         }
 
         g_free (display_name);



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