summaryrefslogtreecommitdiff
path: root/ext/gl
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-07-02 17:08:26 +0900
committerLuis de Bethencourt <luis.bg@samsung.com>2015-07-02 11:34:10 +0100
commit8ec2e0ad6212865aeb76cb30a3fd716a081cbced (patch)
treef58b11440def728e4fd9f674da1f36fbf2a164c3 /ext/gl
parent96d691694a54b3829e1ffcac2b1a408bf051bd1b (diff)
glimagesink: use g_clear_error instead of g_error_free
replace g_error_free with g_clear_error, as it internally checks if error variable is valid or not. https://bugzilla.gnome.org/show_bug.cgi?id=751823
Diffstat (limited to 'ext/gl')
-rw-r--r--ext/gl/gstglimagesink.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c
index 41e173f66..c7dc5ff48 100644
--- a/ext/gl/gstglimagesink.c
+++ b/ext/gl/gstglimagesink.c
@@ -788,10 +788,7 @@ context_error:
gl_sink->context = NULL;
}
- if (error) {
- g_error_free (error);
- error = NULL;
- }
+ g_clear_error (&error);
return FALSE;
}