From 8a31263274a87ba4169c9e8ad266285884778cbf Mon Sep 17 00:00:00 2001 From: Johan Bilien Date: Wed, 3 Jun 2009 22:08:17 +0100 Subject: [PATCH] Fix the leak of the GList of layers in CoglMaterial http://bugzilla.openedhand.com/show_bug.cgi?id=1624 Signed-off-by: Emmanuele Bassi --- common/cogl-material.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/cogl-material.c b/common/cogl-material.c index a7013314c..68198858a 100644 --- a/common/cogl-material.c +++ b/common/cogl-material.c @@ -126,6 +126,7 @@ _cogl_material_free (CoglMaterial *material) g_list_foreach (material->layers, (GFunc)cogl_handle_unref, NULL); + g_list_free (material->layers); g_free (material); }