[gegl] Fix pool in buffer iterator
- From: Øyvind Kolås <ok src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl] Fix pool in buffer iterator
- Date: Tue, 1 Dec 2009 01:05:01 +0000 (UTC)
commit 7e61adb293d36bf9a4c395aecaa6ef41d3f99d25
Author: �yvind Kolås <pippin gimp org>
Date: Tue Dec 1 00:58:50 2009 +0000
Fix pool in buffer iterator
The buffer pool was leaking when ENABLE_MT was not defined.
gegl/buffer/gegl-buffer-iterator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-iterator.c b/gegl/buffer/gegl-buffer-iterator.c
index b716d23..b8dbbd0 100644
--- a/gegl/buffer/gegl-buffer-iterator.c
+++ b/gegl/buffer/gegl-buffer-iterator.c
@@ -335,8 +335,8 @@ static gpointer iterator_buf_pool_get (gint size)
info->used ++;
#if ENABLE_MT
g_static_mutex_unlock (&pool_mutex);
- return info->buf;
#endif
+ return info->buf;
}
}
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]