[empathy] Fix memleak. Free strings retrieved from gtk_tree_model_get.
- From: Lars-Peter Clausen <larsc src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Fix memleak. Free strings retrieved from gtk_tree_model_get.
- Date: Tue, 21 Apr 2009 04:49:43 -0400 (EDT)
commit 6f657e089391122c2a98d709207a728d4c35f178
Author: Lars-Peter Clausen <lars metafoo de>
Date: Sat Apr 18 03:18:15 2009 +0200
Fix memleak. Free strings retrieved from gtk_tree_model_get.
---
src/empathy-preferences.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index 14bf54a..8877bb0 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -288,6 +288,7 @@ preferences_sound_cell_toggled_cb (GtkCellRendererToggle *toggle,
empathy_conf_set_bool (empathy_conf_get (), key, instore);
+ g_free (key);
gtk_tree_path_free (path);
}
@@ -565,6 +566,7 @@ preferences_languages_load_foreach (GtkTreeModel *model,
}
}
+ g_free (code);
gtk_list_store_set (GTK_LIST_STORE (model), iter, COL_LANG_ENABLED, found, -1);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]