[nautilus] 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] batch-rename-dialog: use clear_object to avoid use after free
- Date: Tue, 20 Sep 2016 14:46:08 +0000 (UTC)
commit e0284d001624ad33f566121fd7223ef9cf80de61
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 09a85af..5a60cdd 100644
--- a/src/nautilus-batch-rename-dialog.c
+++ b/src/nautilus-batch-rename-dialog.c
@@ -1998,7 +1998,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]