diff options
author | Alberto Mardegan <alberto.mardegan@nokia.com> | 2008-12-03 11:53:20 +0200 |
---|---|---|
committer | Alberto Mardegan <alberto.mardegan@nokia.com> | 2008-12-03 11:53:20 +0200 |
commit | 4f2e6259a8b1834b1ed016a59375a92deb15a656 (patch) | |
tree | e666516ff714a1edac2af13ae48812ff171d7dcf | |
parent | a639d7b82b578e296c3660202d437ccae742dd7b (diff) | |
parent | b8b382a611a4606d08bb840742ef30d9a565e0e3 (diff) |
Merge branch 'fix_singleton'
-rw-r--r-- | libmcclient/mc-account-manager.c | 2 |
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); |