diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-22 23:34:22 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-26 02:06:47 +0800 |
commit | a748e3cf4d08a94a674b4f675dc3a0457ab7c4e9 (patch) | |
tree | c66ef6da045cb37684910f9b2543a2f13d9eddcf /libempathy | |
parent | b2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0 (diff) | |
download | gsoc2013-empathy-a748e3cf4d08a94a674b4f675dc3a0457ab7c4e9.tar gsoc2013-empathy-a748e3cf4d08a94a674b4f675dc3a0457ab7c4e9.tar.gz gsoc2013-empathy-a748e3cf4d08a94a674b4f675dc3a0457ab7c4e9.tar.bz2 gsoc2013-empathy-a748e3cf4d08a94a674b4f675dc3a0457ab7c4e9.tar.lz gsoc2013-empathy-a748e3cf4d08a94a674b4f675dc3a0457ab7c4e9.tar.xz gsoc2013-empathy-a748e3cf4d08a94a674b4f675dc3a0457ab7c4e9.tar.zst gsoc2013-empathy-a748e3cf4d08a94a674b4f675dc3a0457ab7c4e9.zip |
account-settings: use empathy_signal_connect_weak to connect the ready signal on managers
If for some reason this signal is fired after the settings has been destroyed,
we shouldn't crash.
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-account-settings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index 6b8b0177c..58b0b85ca 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -201,8 +201,8 @@ empathy_account_settings_constructed (GObject *object) { tp_account_prepare_async (priv->account, NULL, empathy_account_settings_account_ready_cb, self); - g_signal_connect (priv->managers, "notify::ready", - G_CALLBACK (empathy_account_settings_managers_ready_cb), self); + empathy_signal_connect_weak (priv->managers, "notify::ready", + G_CALLBACK (empathy_account_settings_managers_ready_cb), object); } if (G_OBJECT_CLASS ( |