[gedit] Don't free the secondary text it is contant
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Don't free the secondary text it is contant
- Date: Sat, 1 Jan 2011 20:57:13 +0000 (UTC)
commit c0fc6079a22952f855515d3afceee978b571f1cc
Author: Garrett Regier <alias301 gmail com>
Date: Sat Jan 1 12:57:12 2011 -0800
Don't free the secondary text it is contant
gedit/gedit-io-error-info-bar.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-io-error-info-bar.c b/gedit/gedit-io-error-info-bar.c
index 71e308e..ac8dba5 100644
--- a/gedit/gedit-io-error-info-bar.c
+++ b/gedit/gedit-io-error-info-bar.c
@@ -1172,7 +1172,7 @@ gedit_externally_modified_info_bar_new (GFile *location,
gchar *uri_for_display;
gchar *temp_uri_for_display;
gchar *primary_text;
- gchar *secondary_text;
+ const gchar *secondary_text;
GtkWidget *info_bar;
g_return_val_if_fail (G_IS_FILE (location), NULL);
@@ -1220,7 +1220,6 @@ 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]