[gnome-flashback] end-session-dialog: free old inhibitor paths
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] end-session-dialog: free old inhibitor paths
- Date: Mon, 14 Sep 2015 00:30:31 +0000 (UTC)
commit 2ce933dcf449a2f9d10017c37bed5b0c54e9bb3e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Sep 14 00:19:36 2015 +0300
end-session-dialog: free old inhibitor paths
.../libend-session-dialog/gf-inhibit-dialog.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
b/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
index 4fd159b..50b2b36 100644
--- a/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
+++ b/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
@@ -117,10 +117,13 @@ gf_inhibit_dialog_set_inhibitor_paths (GfInhibitDialog *dialog,
const gchar *const *paths)
{
GfInhibitDialogPrivate *priv;
+ gchar **old_inhibitors;
priv = gf_inhibit_dialog_get_instance_private (dialog);
+ old_inhibitors = priv->inhibitor_paths;
priv->inhibitor_paths = g_strdupv ((gchar **) paths);
+ g_strfreev (old_inhibitors);
if (priv->list_store == NULL)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]