summaryrefslogtreecommitdiff
path: root/src/nautilus-file-operations.c
diff options
context:
space:
mode:
authorRazvan Chitu <razvan.ch95@gmail.com>2016-08-25 00:08:16 +0300
committerRazvan Chitu <razvan.ch95@gmail.com>2016-08-25 00:11:42 +0300
commit2a908cc9ff8b775521f315fe1832e9ef583003d6 (patch)
treed6928ed82a1cb49032c479002d49fc5ad2f29351 /src/nautilus-file-operations.c
parenta8a889a7e40924a8c30ff7c710077a8b385dd2fd (diff)
downloadnautilus-2a908cc9ff8b775521f315fe1832e9ef583003d6.tar.gz
file-operations: fix crash on compression error
One of the error dialog strings was statically allocated, but the dialog function attempts to free it. In order to fix this, newly allocate a copy of the string. https://bugzilla.gnome.org/show_bug.cgi?id=770353
Diffstat (limited to 'src/nautilus-file-operations.c')
-rw-r--r--src/nautilus-file-operations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index 93715d9c6..24124daff 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -7586,7 +7586,7 @@ compress_job_on_error (AutoarCompressor *compressor,
status);
run_error ((CommonJob *)compress_job,
- _("There was an error while compressing files."),
+ g_strdup (_("There was an error while compressing files.")),
g_strdup (error->message),
NULL,
FALSE,