[gegl] Replace g_object_unref with gegl_tile_unref a couple of places.
- From: Øyvind Kolås <ok src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl] Replace g_object_unref with gegl_tile_unref a couple of places.
- Date: Tue, 24 Nov 2009 18:06:17 +0000 (UTC)
commit aca0d6dd65f891cfcb9377e18361c26b11a18404
Author: �yvind Kolås <pippin gimp org>
Date: Tue Nov 24 18:04:35 2009 +0000
Replace g_object_unref with gegl_tile_unref a couple of places.
gegl/buffer/gegl-buffer-access.c | 10 +++++-----
gegl/buffer/gegl-buffer-linear.c | 2 +-
gegl/buffer/gegl-buffer-load.c | 2 +-
gegl/buffer/gegl-buffer-save.c | 2 +-
gegl/buffer/gegl-tile-handler-cache.c | 6 +++---
gegl/buffer/gegl-tile-handler-zoom.c | 2 +-
6 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 7589a62..ac0ddd0 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -102,7 +102,7 @@ gegl_buffer_pixel_set (GeglBuffer *buffer,
memcpy (tp, buf, bpx_size);
gegl_tile_unlock (tile);
- g_object_unref (tile);
+ gegl_tile_unref (tile);
}
}
}
@@ -179,7 +179,7 @@ gegl_buffer_set_pixel (GeglBuffer *buffer,
{
if (buffer->hot_tile)
{
- g_object_unref (buffer->hot_tile);
+ gegl_tile_unref (buffer->hot_tile);
buffer->hot_tile = NULL;
}
tile = gegl_tile_source_get_tile ((GeglTileSource *) (buffer),
@@ -257,7 +257,7 @@ gegl_buffer_get_pixel (GeglBuffer *buffer,
{
if (buffer->hot_tile)
{
- g_object_unref (buffer->hot_tile);
+ gegl_tile_unref (buffer->hot_tile);
buffer->hot_tile = NULL;
}
tile = gegl_tile_source_get_tile ((GeglTileSource *) (buffer),
@@ -276,7 +276,7 @@ gegl_buffer_get_pixel (GeglBuffer *buffer,
else
memcpy (buf, tp, px_size);
- /*g_object_unref (tile);*/
+ /*gegl_tile_unref (tile);*/
buffer->hot_tile = tile;
}
}
@@ -293,7 +293,7 @@ gegl_buffer_flush (GeglBuffer *buffer)
if (buffer->hot_tile)
{
- g_object_unref (buffer->hot_tile);
+ gegl_tile_unref (buffer->hot_tile);
buffer->hot_tile = NULL;
}
if ((GeglBufferHeader*)(gegl_buffer_backend (buffer)->header))
diff --git a/gegl/buffer/gegl-buffer-linear.c b/gegl/buffer/gegl-buffer-linear.c
index 7a7a32d..6977a2f 100644
--- a/gegl/buffer/gegl-buffer-linear.c
+++ b/gegl/buffer/gegl-buffer-linear.c
@@ -100,7 +100,7 @@ gegl_buffer_linear_new_from_data (const gpointer data,
if (cache)
gegl_tile_handler_cache_insert (cache, tile, 0, 0, 0);
}
- g_object_unref (tile);
+ gegl_tile_unref (tile);
}
return buffer;
diff --git a/gegl/buffer/gegl-buffer-load.c b/gegl/buffer/gegl-buffer-load.c
index dbf37e0..ff31cec 100644
--- a/gegl/buffer/gegl-buffer-load.c
+++ b/gegl/buffer/gegl-buffer-load.c
@@ -419,7 +419,7 @@ gegl_buffer_load (const gchar *path)
/*g_assert (info->offset == entry->offset + info->tile_size);*/
gegl_tile_unlock (tile);
- g_object_unref (G_OBJECT (tile));
+ gegl_tile_unref (tile);
i++;
}
GEGL_NOTE (GEGL_DEBUG_BUFFER_LOAD, "%i tiles loaded",i);
diff --git a/gegl/buffer/gegl-buffer-save.c b/gegl/buffer/gegl-buffer-save.c
index e9f2ab1..85c7894 100644
--- a/gegl/buffer/gegl-buffer-save.c
+++ b/gegl/buffer/gegl-buffer-save.c
@@ -395,7 +395,7 @@ gegl_buffer_save (GeglBuffer *buffer,
info->offset += ret;
}
#endif
- g_object_unref (G_OBJECT (tile));
+ gegl_tile_unref (tile);
i++;
}
}
diff --git a/gegl/buffer/gegl-tile-handler-cache.c b/gegl/buffer/gegl-tile-handler-cache.c
index adaaed8..e929e2a 100644
--- a/gegl/buffer/gegl-tile-handler-cache.c
+++ b/gegl/buffer/gegl-tile-handler-cache.c
@@ -402,7 +402,7 @@ gegl_tile_handler_cache_has_tile (GeglTileHandlerCache *cache,
if (tile)
{
- g_object_unref (G_OBJECT (tile));
+ gegl_tile_unref (tile);
return TRUE;
}
@@ -423,7 +423,7 @@ gegl_tile_handler_cache_trim (GeglTileHandlerCache *cache)
{
g_hash_table_remove (cache_ht, last_writable);
cache_total -= last_writable->tile->size;
- g_object_unref (last_writable->tile);
+ gegl_tile_unref (last_writable->tile);
g_slice_free (CacheItem, last_writable);
#ifdef ENABLE_MT
g_static_mutex_unlock (&mutex);
@@ -462,7 +462,7 @@ gegl_tile_handler_cache_invalidate (GeglTileHandlerCache *cache,
cache_total -= item->tile->size;
tile->tile_storage = NULL;
tile->stored_rev = tile->rev; /* to cheat it out of being stored */
- g_object_unref (tile);
+ gegl_tile_unref (tile);
g_hash_table_remove (cache_ht, item);
g_slice_free (CacheItem, item);
g_queue_delete_link (cache_queue, link);
diff --git a/gegl/buffer/gegl-tile-handler-zoom.c b/gegl/buffer/gegl-tile-handler-zoom.c
index e574433..3033458 100644
--- a/gegl/buffer/gegl-tile-handler-zoom.c
+++ b/gegl/buffer/gegl-tile-handler-zoom.c
@@ -288,7 +288,7 @@ get_tile (GeglTileSource *gegl_tile_source,
if (source_tile[i][j])
{
set_half (tile, source_tile[i][j], tile_width, tile_height, format, i, j);
- g_object_unref (source_tile[i][j]);
+ gegl_tile_unref (source_tile[i][j]);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]