[gnome-panel/wip/gnome-3.10+: 68/75] fish: Fix a memory leak
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/gnome-3.10+: 68/75] fish: Fix a memory leak
- Date: Tue, 7 Oct 2014 22:31:43 +0000 (UTC)
commit c244ba9004ed40ed3e6b1e05bc8d8bf407fc8728
Author: Dmitry Shachnev <mitya57 gmail com>
Date: Sun Sep 21 15:04:21 2014 +0400
fish: Fix a memory leak
applets/fish/fish.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/applets/fish/fish.c b/applets/fish/fish.c
index c9fb506..36860f7 100644
--- a/applets/fish/fish.c
+++ b/applets/fish/fish.c
@@ -1403,14 +1403,17 @@ fish_applet_settings_changed (GSettings *settings,
if (!key || g_strcmp0 (key, FISH_NAME_KEY) == 0) {
value_str = g_settings_get_string (settings, FISH_NAME_KEY);
fish_applet_update_name (fish, value_str);
+ g_free (value_str);
}
if (!key || g_strcmp0 (key, FISH_IMAGE_KEY) == 0) {
value_str = g_settings_get_string (settings, FISH_IMAGE_KEY);
fish_applet_update_image (fish, value_str);
+ g_free (value_str);
}
if (!key || g_strcmp0 (key, FISH_COMMAND_KEY) == 0) {
value_str = g_settings_get_string (settings, FISH_COMMAND_KEY);
fish_applet_update_command (fish, value_str);
+ g_free (value_str);
}
if (!key || g_strcmp0 (key, FISH_SPEED_KEY) == 0) {
value_double = g_settings_get_double (settings, FISH_SPEED_KEY);
@@ -1420,8 +1423,6 @@ fish_applet_settings_changed (GSettings *settings,
value_boolean = g_settings_get_boolean (settings, FISH_ROTATE_KEY);
fish_applet_update_rotate (fish, value_boolean);
}
-
- g_free (value_str);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]