[gtk+/wip/gmenu: 79/87] GtkModelMenuItem: don't leak a GVariant
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gmenu: 79/87] GtkModelMenuItem: don't leak a GVariant
- Date: Sat, 3 Dec 2011 23:54:47 +0000 (UTC)
commit 27e53e1d27dbaa1e75b6bd302a27133088f4a275
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Dec 1 22:59:27 2011 -0500
GtkModelMenuItem: don't leak a GVariant
gtk/gtkmodelmenuitem.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index 082f5b8..08a3ac1 100644
--- a/gtk/gtkmodelmenuitem.c
+++ b/gtk/gtkmodelmenuitem.c
@@ -230,6 +230,9 @@ gtk_model_menu_item_setup (GtkModelMenuItem *item,
else
gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);
+
+ if (state != NULL)
+ g_variant_unref (state);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]