summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pluma/pluma-io-error-message-area.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pluma/pluma-io-error-message-area.c b/pluma/pluma-io-error-message-area.c
index 31c90636..f1fd60ff 100644
--- a/pluma/pluma-io-error-message-area.c
+++ b/pluma/pluma-io-error-message-area.c
@@ -1156,7 +1156,7 @@ pluma_externally_modified_message_area_new (const gchar *uri,
gchar *full_formatted_uri;
gchar *uri_for_display;
gchar *temp_uri_for_display;
- const gchar *primary_text;
+ gchar *primary_text;
const gchar *secondary_text;
GtkWidget *message_area;
@@ -1207,6 +1207,8 @@ pluma_externally_modified_message_area_new (const gchar *uri,
primary_text,
secondary_text);
+ g_free (primary_text);
+
return message_area;
}