[gimp/wip/animation: 144/197] plug-ins: no need for destroy functions for animation render queues.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/animation: 144/197] plug-ins: no need for destroy functions for animation render queues.
- Date: Sat, 7 Oct 2017 03:10:33 +0000 (UTC)
commit 2ea27098dc4676bd4f649aec43aaef0f864a4e40
Author: Jehan <jehan girinstud io>
Date: Fri May 26 16:38:31 2017 +0200
plug-ins: no need for destroy functions for animation render queues.
Must have been a remnant from a copy-paste or a previous version.
Anyway these queue contents are int (disguised as gpointer!) so
obviously there is nothing to free.
plug-ins/animation-play/core/animation-renderer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/animation-play/core/animation-renderer.c
b/plug-ins/animation-play/core/animation-renderer.c
index 042c6f6..8253ee3 100644
--- a/plug-ins/animation-play/core/animation-renderer.c
+++ b/plug-ins/animation-play/core/animation-renderer.c
@@ -141,8 +141,8 @@ animation_renderer_init (AnimationRenderer *renderer)
renderer->priv->cache_table = g_hash_table_new_full (g_str_hash, g_str_equal,
(GDestroyNotify) g_free,
(GDestroyNotify) g_weak_ref_clear);
- renderer->priv->queue = g_async_queue_new_full ((GDestroyNotify) g_weak_ref_clear);
- renderer->priv->ack_queue = g_async_queue_new_full ((GDestroyNotify) g_weak_ref_clear);
+ renderer->priv->queue = g_async_queue_new ();
+ renderer->priv->ack_queue = g_async_queue_new ();
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]