summaryrefslogtreecommitdiff
path: root/gconf
diff options
context:
space:
mode:
Diffstat (limited to 'gconf')
-rw-r--r--gconf/gconf-client.c3
-rw-r--r--gconf/gconf-client.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/gconf/gconf-client.c b/gconf/gconf-client.c
index 131068b8..a31e2b15 100644
--- a/gconf/gconf-client.c
+++ b/gconf/gconf-client.c
@@ -350,8 +350,9 @@ gconf_client_new_with_engine (GConfEngine* engine)
client = gtk_type_new (gconf_client_get_type ());
- /* take over a ref count */
client->engine = engine;
+
+ gconf_engine_ref(client->engine);
return client;
}
diff --git a/gconf/gconf-client.h b/gconf/gconf-client.h
index 311033a6..507b2ff1 100644
--- a/gconf/gconf-client.h
+++ b/gconf/gconf-client.h
@@ -144,8 +144,7 @@ GtkType gconf_client_get_type (void);
/* use the default engine */
GConfClient* gconf_client_new (void);
-/* specify an engine; you pass a reference count to the engine,
- i.e. the client now owns your reference. */
+/* refcount on engine is incremented, you still own your ref */
GConfClient* gconf_client_new_with_engine (GConfEngine* engine);
/* Add a directory to monitor and emit the value_changed signal and