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); }