diff options
author | Marek Kasik <mkasik@redhat.com> | 2011-11-08 18:17:24 +0100 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2011-11-08 18:17:24 +0100 |
commit | 8aac003ce0c31677811d7fcf2449205770e7f890 (patch) | |
tree | bfa035ff0d7773811559ba2303233908ac33cb12 | |
parent | 071d9141e32df01262a907851ee428d5c585f333 (diff) | |
download | gnome-settings-daemon-8aac003ce0c31677811d7fcf2449205770e7f890.tar.gz |
print-notifications: Fix a leak
Free old_state_reasons and new_state_reasons properly.
-rw-r--r-- | plugins/print-notifications/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 508796d2..96285bc5 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); |