[gnome-terminal] Plug two mem leaks
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Plug two mem leaks
- Date: Thu, 20 Aug 2009 14:00:44 +0000 (UTC)
commit 5fb1e6c4739a2d76e958d5eb8efc0ba80791151f
Author: Christian Persch <chpe gnome org>
Date: Thu Aug 20 14:59:01 2009 +0200
Plug two mem leaks
src/terminal-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 4879b93..5398828 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -3606,6 +3606,7 @@ help_about_callback (GtkAction *action,
contributors = g_key_file_get_string_list (key_file, ABOUT_GROUP, "Contributors", &n_contributors, NULL);
artists = g_key_file_get_string_list (key_file, ABOUT_GROUP, "Artists", &n_artists, NULL);
documenters = g_key_file_get_string_list (key_file, ABOUT_GROUP, "Documenters", &n_documenters, NULL);
+ g_key_file_free (key_file);
array = g_ptr_array_new ();
@@ -3619,8 +3620,8 @@ help_about_callback (GtkAction *action,
g_ptr_array_add (array, g_strdup (_("Contributors:")));
for (i = 0; i < n_contributors; ++i)
g_ptr_array_add (array, EMAILIFY (contributors[i]));
- g_free (contributors); /* strings are now owned by the array */
}
+ g_free (contributors); /* strings are now owned by the array */
g_ptr_array_add (array, NULL);
array_strv = (char **) g_ptr_array_free (array, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]