summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2015-09-04 11:48:29 +0100
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2015-09-04 11:48:29 +0100
commit1438afd804ffb969b7e119b1f9644580cfa8d726 (patch)
treec749779d4c0ccb183ba30a3af943d21b67e1e19f
parent5a622da8e6c50ee61d222baf04241d516d4ea638 (diff)
downloadclutter-gst-1438afd804ffb969b7e119b1f9644580cfa8d726.tar.gz
video-sink: fix CoglError leak
-rw-r--r--clutter-gst/clutter-gst-video-sink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 4f52762..6c2b65a 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -1058,7 +1058,8 @@ video_texture_new_from_data (CoglContext *ctx,
tex = cogl_texture_2d_new_from_data (ctx, width, height, format,
rowstride, data, &internal_error);
if (tex == NULL) {
- GST_WARNING ("Cannot allocate Cogl texture : %s", internal_error->message);
+ GST_WARNING ("Cannot create Cogl texture : %s", internal_error->message);
+ cogl_error_free (internal_error);
return NULL;
}