[clutter-gst/clutter-gst-3.0] video-sink: fix CoglError leak
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] video-sink: fix CoglError leak
- Date: Fri, 4 Sep 2015 11:50:41 +0000 (UTC)
commit 1438afd804ffb969b7e119b1f9644580cfa8d726
Author: Lionel Landwerlin <lionel g landwerlin intel com>
Date: Fri Sep 4 11:48:29 2015 +0100
video-sink: fix CoglError leak
clutter-gst/clutter-gst-video-sink.c | 3 ++-
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]