[file-roller] Fix crash when compressing remote files
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Fix crash when compressing remote files
- Date: Tue, 27 Sep 2016 05:58:59 +0000 (UTC)
commit fb46c103054ff1bc79c83008d7b97602cffae154
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 13 13:34:11 2016 +0200
Fix crash when compressing remote files
Though the crash could possibly happen with any operation. Use the
correct destructor for ->tmp_file, _g_object_unref() rather than
g_free().
https://bugzilla.gnome.org/show_bug.cgi?id=767577
src/fr-command.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-command.c b/src/fr-command.c
index 8eb947f..6a61657 100644
--- a/src/fr-command.c
+++ b/src/fr-command.c
@@ -79,7 +79,7 @@ xfer_data_free (XferData *data)
_g_object_list_unref (data->file_list);
_g_object_unref (data->base_dir);
g_free (data->dest_dir);
- g_free (data->tmp_dir);
+ _g_object_unref (data->tmp_dir);
_g_object_unref (data->cancellable);
_g_object_unref (data->result);
g_free (data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]