[yelp] [yelp-window] Bookmark icons weren't applied correctly, bad memory management
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] [yelp-window] Bookmark icons weren't applied correctly, bad memory management
- Date: Fri, 6 Aug 2010 12:45:01 +0000 (UTC)
commit e468299e5058baca4eca4cddbed5ba7c155da0e9
Author: Shaun McCance <shaunm gnome org>
Date: Fri Aug 6 08:43:58 2010 -0400
[yelp-window] Bookmark icons weren't applied correctly, bad memory management
src/yelp-window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 2a16743..f7b0810 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -1095,10 +1095,10 @@ window_set_bookmark_icons (YelpWindow *window)
g_object_get (priv->view, "yelp-uri", &uri, NULL);
doc_uri = yelp_uri_get_document_uri (uri);
- bookmarks = g_hash_table_new (g_str_hash, g_str_equal);
+ bookmarks = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
value = yelp_application_get_bookmarks (priv->application, doc_uri);
g_variant_get (value, "a(sss)", &viter);
- while (g_variant_iter_loop (viter, "(&s&s&s)", &page_id, NULL, NULL))
+ while (g_variant_iter_next (viter, "(sss)", &page_id, NULL, NULL))
g_hash_table_insert (bookmarks, page_id, page_id);
g_variant_iter_free (viter);
g_variant_unref (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]