From 1445e9d32d8f4b5c82c81deb32a57a90c0009825 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 13 Apr 2010 17:26:03 +0100 Subject: [PATCH] cogl-atlas-texture: Fix a memory leak The CoglAtlasTexture struct was not being freed in _cogl_atlas_texture_free so there would be a small leak whenever a texture was destroyed. Thanks to Robert Bragg for spotting this. --- clutter/cogl/cogl/cogl-atlas-texture.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/cogl/cogl/cogl-atlas-texture.c b/clutter/cogl/cogl/cogl-atlas-texture.c index 81e9b8c08..0835e73b7 100644 --- a/clutter/cogl/cogl/cogl-atlas-texture.c +++ b/clutter/cogl/cogl/cogl-atlas-texture.c @@ -273,6 +273,8 @@ _cogl_atlas_texture_free (CoglAtlasTexture *atlas_tex) _cogl_atlas_texture_remove_from_atlas (atlas_tex); cogl_handle_unref (atlas_tex->sub_texture); + + g_free (atlas_tex); } static int