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.
This commit is contained in:
Neil Roberts 2010-04-13 17:26:03 +01:00
parent 30f43c6cda
commit 1445e9d32d

View File

@ -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