[gegl] buffer: in gegl-tile-handler-cache.c, avoid use-after-unref
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: in gegl-tile-handler-cache.c, avoid use-after-unref
- Date: Thu, 23 Nov 2017 13:57:31 +0000 (UTC)
commit 0e653cb6def5286012c8160a19b5c0d708b56d45
Author: Ell <ell_se yahoo com>
Date: Thu Nov 23 08:41:31 2017 -0500
buffer: in gegl-tile-handler-cache.c, avoid use-after-unref
gegl/buffer/gegl-tile-handler-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-handler-cache.c b/gegl/buffer/gegl-tile-handler-cache.c
index f74f355..becb7e3 100644
--- a/gegl/buffer/gegl-tile-handler-cache.c
+++ b/gegl/buffer/gegl-tile-handler-cache.c
@@ -320,8 +320,8 @@ gegl_tile_handler_cache_wash (GeglTileHandlerCache *cache)
if (last_dirty != NULL)
{
gegl_tile_store (last_dirty);
- gegl_tile_unref (last_dirty);
g_clear_object (&last_dirty->tile_storage);
+ gegl_tile_unref (last_dirty);
return TRUE;
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]