From 2a908cc9ff8b775521f315fe1832e9ef583003d6 Mon Sep 17 00:00:00 2001 From: Razvan Chitu Date: Thu, 25 Aug 2016 00:08:16 +0300 Subject: 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 --- src/nautilus-file-operations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.1