aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-31 00:18:11 -0500
committerTed Gould <ted@gould.cx>2010-03-31 00:18:11 -0500
commit6d2cbc37090e80472aa3a5719d681d8ba786c505 (patch)
tree211ca7c2cc5c960dcfede817fe1c69056996bf61
parent59518d6b4119b0a3bd8cce7ab4c1a139b7b1a652 (diff)
downloadayatana-indicator-messages-6d2cbc37090e80472aa3a5719d681d8ba786c505.tar.gz
ayatana-indicator-messages-6d2cbc37090e80472aa3a5719d681d8ba786c505.tar.bz2
ayatana-indicator-messages-6d2cbc37090e80472aa3a5719d681d8ba786c505.zip
Actually, more correctly, that should be a weak ref.
-rw-r--r--src/indicator-messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 70d5aa0..d0794cb 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -467,7 +467,7 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm
dbusmenu_gtkclient_newitem_base(DBUSMENU_GTKCLIENT(client), newitem, gmi, parent);
g_signal_connect(G_OBJECT(newitem), DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED, G_CALLBACK(indicator_prop_change_cb), mi_data);
- g_signal_connect(G_OBJECT(newitem), "destroy", G_CALLBACK(g_free), mi_data);
+ g_object_weak_ref(G_OBJECT(newitem), (GWeakNotify)g_free, mi_data);
return TRUE;
}