summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Mardegan <alberto.mardegan@nokia.com>2008-12-03 11:53:20 +0200
committerAlberto Mardegan <alberto.mardegan@nokia.com>2008-12-03 11:53:20 +0200
commit4f2e6259a8b1834b1ed016a59375a92deb15a656 (patch)
treee666516ff714a1edac2af13ae48812ff171d7dcf
parenta639d7b82b578e296c3660202d437ccae742dd7b (diff)
parentb8b382a611a4606d08bb840742ef30d9a565e0e3 (diff)
Merge branch 'fix_singleton'
-rw-r--r--libmcclient/mc-account-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmcclient/mc-account-manager.c b/libmcclient/mc-account-manager.c
index 1170f8a6..38569f7d 100644
--- a/libmcclient/mc-account-manager.c
+++ b/libmcclient/mc-account-manager.c
@@ -252,6 +252,8 @@ constructor (GType type, guint n_params, GObjectConstructParam *params)
object = G_OBJECT_CLASS (mc_account_manager_parent_class)->constructor
(type, n_params, params);
account_manager_singleton = MC_ACCOUNT_MANAGER (object);
+ g_object_add_weak_pointer (object,
+ (gpointer) &account_manager_singleton);
}
else
object = g_object_ref (account_manager_singleton);