[nautilus/wip/csoriano/debug: 7/8] batch-rename-dialog: use clear_object to avoid use after free
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/debug: 7/8] batch-rename-dialog: use clear_object to avoid use after free
- Date: Mon, 19 Sep 2016 18:55:16 +0000 (UTC)
commit 4bf6a555a8b53f6e2f29cfc0dec43c72eba4c669
Author: Carlos Soriano <csoriano gnome org>
Date: Fri Sep 16 10:02:46 2016 +0200
batch-rename-dialog: use clear_object to avoid use after free
src/nautilus-batch-rename-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c
index c71ed54..59a15a1 100644
--- a/src/nautilus-batch-rename-dialog.c
+++ b/src/nautilus-batch-rename-dialog.c
@@ -2010,7 +2010,7 @@ nautilus_batch_rename_dialog_finalize (GObject *object)
if (dialog->checking_conflicts)
{
g_cancellable_cancel (dialog->conflict_cancellable);
- g_object_unref (dialog->conflict_cancellable);
+ g_clear_object (&dialog->conflict_cancellable);
}
g_list_free (dialog->original_name_listbox_rows);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]