[nautilus] file: don't leak a NautilusFileUndoInfo
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file: don't leak a NautilusFileUndoInfo
- Date: Mon, 17 Sep 2012 14:19:16 +0000 (UTC)
commit ec16bfbd79f6fc966162ca2733c2f27d2d455406
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Sep 17 10:14:34 2012 -0400
file: don't leak a NautilusFileUndoInfo
nautilus_file_undo_manager_set_action() takes a ref to the undo info
object, so we are leaking an extra reference.
libnautilus-private/nautilus-file.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 9c0ab13..046a1c1 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -1667,6 +1667,7 @@ nautilus_file_operation_free (NautilusFileOperation *op)
if (op->undo_info != NULL) {
nautilus_file_undo_manager_set_action (op->undo_info);
+ g_object_unref (op->undo_info);
}
g_free (op);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]