[nautilus/undo-manager] undostack-manager: don't add references when returning the singleton
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/undo-manager] undostack-manager: don't add references when returning the singleton
- Date: Tue, 7 Dec 2010 15:56:56 +0000 (UTC)
commit dd9e1507cf5557d57a3c958d9ccec4c664c5688e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Dec 7 16:54:54 2010 +0100
undostack-manager: don't add references when returning the singleton
nautilus_undo_stack_manager_get() is called a lots of time, and it's
just useful to do it inline from e.g. nautilus-file-operations.
libnautilus-private/nautilus-undostack-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-undostack-manager.c b/libnautilus-private/nautilus-undostack-manager.c
index 090c8d4..8e8a988 100644
--- a/libnautilus-private/nautilus-undostack-manager.c
+++ b/libnautilus-private/nautilus-undostack-manager.c
@@ -297,7 +297,7 @@ nautilus_undo_stack_manager_constructor (GType type,
GObject *retval;
if (singleton != NULL) {
- return g_object_ref (singleton);
+ return G_OBJECT (singleton);
}
retval = G_OBJECT_CLASS (nautilus_undo_stack_manager_parent_class)->constructor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]