[gedit] Fix memory leak
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix memory leak
- Date: Sat, 1 Jan 2011 20:48:12 +0000 (UTC)
commit 2edcd16debc1ce0baeba6e82be51fde694bbc3ba
Author: Garrett Regier <alias301 gmail com>
Date: Sat Jan 1 12:39:27 2011 -0800
Fix memory leak
gedit/gedit-io-error-info-bar.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-io-error-info-bar.c b/gedit/gedit-io-error-info-bar.c
index c8ed6a3..71e308e 100644
--- a/gedit/gedit-io-error-info-bar.c
+++ b/gedit/gedit-io-error-info-bar.c
@@ -1171,8 +1171,8 @@ gedit_externally_modified_info_bar_new (GFile *location,
gchar *full_formatted_uri;
gchar *uri_for_display;
gchar *temp_uri_for_display;
- const gchar *primary_text;
- const gchar *secondary_text;
+ gchar *primary_text;
+ gchar *secondary_text;
GtkWidget *info_bar;
g_return_val_if_fail (G_IS_FILE (location), NULL);
@@ -1220,6 +1220,9 @@ gedit_externally_modified_info_bar_new (GFile *location,
primary_text,
secondary_text);
+ g_free (secondary_text);
+ g_free (primary_text);
+
return info_bar;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]