diff -puNr cogl-1.8.0.orig/cogl/cogl-pipeline.c cogl-1.8.0/cogl/cogl-pipeline.c
--- cogl-1.8.0.orig/cogl/cogl-pipeline.c	2011-09-20 00:40:07.000000000 +0900
+++ cogl-1.8.0/cogl/cogl-pipeline.c	2011-10-05 22:23:24.289930738 +0900
@@ -550,6 +550,8 @@ _cogl_pipeline_free (CoglPipeline *pipel
 
   g_list_free (pipeline->deprecated_get_layers_list);
 
+  recursively_free_layer_caches (pipeline);
+
   g_slice_free (CoglPipeline, pipeline);
 }
 
