[gnome-settings-daemon] print-notifications: Fix a leak
- From: Marek KaÅÃk <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] print-notifications: Fix a leak
- Date: Tue, 8 Nov 2011 17:17:48 +0000 (UTC)
commit 8aac003ce0c31677811d7fcf2449205770e7f890
Author: Marek Kasik <mkasik redhat com>
Date: Tue Nov 8 18:17:24 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]