diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2015-07-02 17:08:26 +0900 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2015-07-02 11:34:10 +0100 |
commit | 8ec2e0ad6212865aeb76cb30a3fd716a081cbced (patch) | |
tree | f58b11440def728e4fd9f674da1f36fbf2a164c3 /ext/gl | |
parent | 96d691694a54b3829e1ffcac2b1a408bf051bd1b (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.c | 5 |
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; } |