[nautilus] file-operations: fix crash on compression error
- From: Răzvan-Mihai Chițu <razvanchitu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-operations: fix crash on compression error
- Date: Wed, 24 Aug 2016 21:15:08 +0000 (UTC)
commit 2a908cc9ff8b775521f315fe1832e9ef583003d6
Author: Razvan Chitu <razvan ch95 gmail com>
Date: Thu Aug 25 00:08:16 2016 +0300
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index 93715d9..24124da 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]