[yelp] Use g_async_queue_new_full instead of manually freeing
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Use g_async_queue_new_full instead of manually freeing
- Date: Wed, 28 Jan 2015 12:03:31 +0000 (UTC)
commit cb661450c5e629e2ca8f633ef0ecf3d2a6e11e19
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Sep 28 17:06:56 2014 +0200
Use g_async_queue_new_full instead of manually freeing
https://bugzilla.gnome.org/show_bug.cgi?id=737528
libyelp/yelp-transform.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/libyelp/yelp-transform.c b/libyelp/yelp-transform.c
index f3cab6e..04dc630 100644
--- a/libyelp/yelp-transform.c
+++ b/libyelp/yelp-transform.c
@@ -123,7 +123,7 @@ static void
yelp_transform_init (YelpTransform *transform)
{
YelpTransformPrivate *priv = GET_PRIV (transform);
- priv->queue = g_async_queue_new ();
+ priv->queue = g_async_queue_new_full (g_free);
priv->chunks = g_hash_table_new_full (g_str_hash,
g_str_equal,
g_free,
@@ -182,9 +182,6 @@ yelp_transform_dispose (GObject *object)
debug_print (DB_FUNCTION, "entering\n");
if (priv->queue) {
- gchar *chunk_id;
- while ((chunk_id = (gchar *) g_async_queue_try_pop (priv->queue)))
- g_free (chunk_id);
g_async_queue_unref (priv->queue);
priv->queue = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]