[gnome-panel] fish: Fix a memory leak
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] fish: Fix a memory leak
- Date: Mon, 27 Oct 2014 16:21:03 +0000 (UTC)
commit ef770468e3d05c531881e2f6b3bb92f94928eb91
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 043ec94..33ba5c1 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]