[sound-juicer] Fix memory leak in set_action_state
- From: Phillip Wood <pwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Fix memory leak in set_action_state
- Date: Mon, 18 Aug 2014 13:25:05 +0000 (UTC)
commit 8ccc06e82668f2b9afdea14dbb9bc8465d9a5d8c
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Mon Aug 18 14:21:15 2014 +0100
Fix memory leak in set_action_state
name wasn't being freed.
src/sj-main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/sj-main.c b/src/sj-main.c
index 600fbaa..35c7cde 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -2414,6 +2414,7 @@ set_action_state (const gchar *detailed_name)
if (action != NULL)
g_simple_action_set_state (action, value);
+ g_free (name);
g_variant_unref (value);
} else {
g_warning ("Error parsing detailed action name '%s' - %s",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]