[gegl] fix compiler warnings and code style on last commit
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] fix compiler warnings and code style on last commit
- Date: Wed, 3 Apr 2013 22:36:26 +0000 (UTC)
commit ae2e5d17962009670cfe74a00118becdea2189de
Author: Michael Henning <drawoc darkrefraction com>
Date: Wed Apr 3 18:35:27 2013 -0400
fix compiler warnings and code style on last commit
gegl/buffer/gegl-buffer-iterator.c | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-iterator.c b/gegl/buffer/gegl-buffer-iterator.c
index e200087..1745dd1 100644
--- a/gegl/buffer/gegl-buffer-iterator.c
+++ b/gegl/buffer/gegl-buffer-iterator.c
@@ -28,6 +28,7 @@
#include "gegl-types-internal.h"
#include "gegl-buffer-types.h"
#include "gegl-buffer-iterator.h"
+#include "gegl-buffer-iterator-private.h"
#include "gegl-buffer-private.h"
#include "gegl-tile-storage.h"
#include "gegl-utils.h"
@@ -379,20 +380,21 @@ static void iterator_buf_pool_release (gpointer buf)
}
void
-_gegl_buffer_iterator_cleanup ()
+_gegl_buffer_iterator_cleanup (void)
{
gint i;
/* FIXME: is the mutex lock necessary? */
g_mutex_lock (&pool_mutex);
- if (buf_pool) {
- for (i=0; i<buf_pool->len; i++)
- {
- BufInfo *info = &g_array_index (buf_pool, BufInfo, i);
- gegl_free (info->buf);
- }
- g_array_free (buf_pool, TRUE);
- buf_pool = NULL;
- }
+ if (buf_pool)
+ {
+ for (i=0; i<buf_pool->len; i++)
+ {
+ BufInfo *info = &g_array_index (buf_pool, BufInfo, i);
+ gegl_free (info->buf);
+ }
+ g_array_free (buf_pool, TRUE);
+ buf_pool = NULL;
+ }
g_mutex_unlock (&pool_mutex);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]