[glib/wip/menus-rebase2: 51/64] Don't unref a hash table if it is NULL
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/menus-rebase2: 51/64] Don't unref a hash table if it is NULL
- Date: Fri, 18 Nov 2011 16:29:43 +0000 (UTC)
commit b31c500f25fa677651e9ad7ab9c32ec4605b024c
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 29 01:53:23 2011 -0400
Don't unref a hash table if it is NULL
gio/gmenumarkup.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/gmenumarkup.c b/gio/gmenumarkup.c
index ba3baa6..14605bf 100644
--- a/gio/gmenumarkup.c
+++ b/gio/gmenumarkup.c
@@ -463,7 +463,8 @@ g_menu_markup_parser_end_menu (GMarkupParseContext *context)
menu = state->frame.menu;
- g_hash_table_unref (state->objects);
+ if (state->objects)
+ g_hash_table_unref (state->objects);
g_slice_free (GMenuMarkupState, state);
return menu;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]