From ecf65cd4a5c904918aba419db2461c9a4527c83b Mon Sep 17 00:00:00 2001 From: Neil Roberts <neil@linux.intel.com> 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. --- cogl/cogl-atlas-texture.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogl/cogl-atlas-texture.c b/cogl/cogl-atlas-texture.c index 81e9b8c08..0835e73b7 100644 --- a/cogl/cogl-atlas-texture.c +++ b/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