Commit 8aad026d authored by Jonny Lamb's avatar Jonny Lamb Committed by Xavier Claessens

Use dispose_run in EmpathyContactSelector.

Signed-off-by: 's avatarJonny Lamb <jonny.lamb@collabora.co.uk>

svn path=/trunk/; revision=2340
parent e16d37dd
...@@ -44,6 +44,7 @@ enum ...@@ -44,6 +44,7 @@ enum
typedef struct typedef struct
{ {
EmpathyContactListStore *store; EmpathyContactListStore *store;
gboolean dispose_run;
} EmpathyContactSelectorPriv; } EmpathyContactSelectorPriv;
static void contact_selector_changed_cb ( static void contact_selector_changed_cb (
...@@ -279,6 +280,8 @@ empathy_contact_selector_init (EmpathyContactSelector *empathy_contact_selector) ...@@ -279,6 +280,8 @@ empathy_contact_selector_init (EmpathyContactSelector *empathy_contact_selector)
EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelectorPriv); EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelectorPriv);
empathy_contact_selector->priv = priv; empathy_contact_selector->priv = priv;
priv->dispose_run = FALSE;
} }
static void static void
...@@ -327,6 +330,11 @@ contact_selector_dispose (GObject *object) ...@@ -327,6 +330,11 @@ contact_selector_dispose (GObject *object)
EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (object); EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (object);
EmpathyContactSelectorPriv *priv = GET_PRIV (selector); EmpathyContactSelectorPriv *priv = GET_PRIV (selector);
if (priv->dispose_run)
return;
priv->dispose_run = TRUE;
if (priv->store) if (priv->store)
{ {
g_object_unref (priv->store); g_object_unref (priv->store);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment