summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-09-14 09:36:20 +0900
committerTim-Philipp Müller <tim@centricular.com>2015-09-14 16:55:01 +0100
commitdab39bf42bdabdf239747e3227a99caf3274be23 (patch)
tree2ccc8e5db97ece705a0acab19669075cb56d1096 /sys
parent35cb3b0c5714e88a5c08c350461824423757941a (diff)
downloadgst-plugins-base-dab39bf42bdabdf239747e3227a99caf3274be23.tar.gz
gst-plugins-base-dab39bf42bdabdf239747e3227a99caf3274be23.tar.xz
xvimagesink: fix error leak when context creation fails
When context creation fails, error is getting leaked. https://bugzilla.gnome.org/show_bug.cgi?id=754973
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimagesink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c
index bc9f6bf34..1f8729ee2 100644
--- a/sys/xvimage/xvimagesink.c
+++ b/sys/xvimage/xvimagesink.c
@@ -1756,7 +1756,8 @@ no_context:
{
gst_element_message_full (GST_ELEMENT (xvimagesink), GST_MESSAGE_ERROR,
error->domain, error->code, g_strdup ("Could not initialise Xv output"),
- error->message, __FILE__, GST_FUNCTION, __LINE__);
+ g_strdup (error->message), __FILE__, GST_FUNCTION, __LINE__);
+ g_clear_error (&error);
return FALSE;
}
}