aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-messages.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-01 16:33:00 -0500
committerTed Gould <ted@canonical.com>2009-10-01 16:33:00 -0500
commit5bc25125ca5581ce9910007af68ee1c53b995d81 (patch)
treeaf2563f2442c0839e632f1ff752e8bce95b11d12 /src/indicator-messages.c
parent6065e9e4c3c66cedcfee2059a556a04b05d49009 (diff)
downloadayatana-indicator-messages-5bc25125ca5581ce9910007af68ee1c53b995d81.tar.gz
ayatana-indicator-messages-5bc25125ca5581ce9910007af68ee1c53b995d81.tar.bz2
ayatana-indicator-messages-5bc25125ca5581ce9910007af68ee1c53b995d81.zip
Stupid ordering, just asking for a memory leak.
Diffstat (limited to 'src/indicator-messages.c')
-rw-r--r--src/indicator-messages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 0d0e294..e7d6207 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -202,12 +202,12 @@ indicator_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, gchar * value, in
static gboolean
new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client)
{
- indicator_item_t * mi_data = g_new0(indicator_item_t, 1);
-
g_return_val_if_fail(DBUSMENU_IS_MENUITEM(newitem), FALSE);
g_return_val_if_fail(DBUSMENU_IS_GTKCLIENT(client), FALSE);
/* Note: not checking parent, it's reasonable for it to be NULL */
+ indicator_item_t * mi_data = g_new0(indicator_item_t, 1);
+
GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_menu_item_new());
GtkWidget * hbox = gtk_hbox_new(FALSE, 4);