summaryrefslogtreecommitdiff
path: root/src/nautilus-file-undo-manager.h
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@src.gnome.org>2016-07-25 14:42:38 +0300
committerErnestas Kulik <ernestask@src.gnome.org>2016-07-25 15:21:05 +0300
commitbcf88a7a341e1771025f7d792d5a193a88ec7a6c (patch)
tree4dc85392cab9be7c20e3df61a8f266267a5ba465 /src/nautilus-file-undo-manager.h
parent6064bdcfe5428c481bb7f854b76993fbd958ea15 (diff)
downloadnautilus-bcf88a7a341e1771025f7d792d5a193a88ec7a6c.tar.gz
file-undo-manager: initialize singleton explicitly
The current implementation leaks the NautilusFileUndoManager instance, because the code does not unref it anywhere. This commit adds a _new() function to the undo manager and makes NautilusApplication manage its lifetime. https://bugzilla.gnome.org/show_bug.cgi?id=769082
Diffstat (limited to 'src/nautilus-file-undo-manager.h')
-rw-r--r--src/nautilus-file-undo-manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-file-undo-manager.h b/src/nautilus-file-undo-manager.h
index a5e21d796..255f86c2b 100644
--- a/src/nautilus-file-undo-manager.h
+++ b/src/nautilus-file-undo-manager.h
@@ -68,6 +68,7 @@ struct _NautilusFileUndoManagerClass {
GType nautilus_file_undo_manager_get_type (void) G_GNUC_CONST;
+NautilusFileUndoManager *nautilus_file_undo_manager_new (void);
NautilusFileUndoManager * nautilus_file_undo_manager_get (void);
void nautilus_file_undo_manager_set_action (NautilusFileUndoInfo *info);