gltransformation: fix shader memory leak
authorLubosz Sarnecki <lubosz.sarnecki@collabora.co.uk>
Tue, 21 Apr 2015 05:28:58 +0000 (07:28 +0200)
committerMatthew Waters <matthew@centricular.com>
Tue, 21 Apr 2015 06:37:17 +0000 (16:37 +1000)
ext/gl/gstgltransformation.c

index f9273c7..4175c39 100644 (file)
@@ -404,6 +404,8 @@ gst_gl_transformation_reset_gl (GstGLFilter * filter)
     gl->DeleteBuffers (1, &transformation->vertex_buffer);
     transformation->vertex_buffer = 0;
   }
+
+  gst_object_unref (transformation->shader);
 }
 
 static void