Fix the leak of the GList of layers in CoglMaterial
http://bugzilla.openedhand.com/show_bug.cgi?id=1624 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
6f7afdf553
commit
f87e10c024
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user