glshader: properly unref the stages on failure
authorMatthew Waters <matthew@centricular.com>
Wed, 11 Nov 2015 01:23:30 +0000 (12:23 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:11 +0000 (19:32 +0000)
commit117fc0409acd7c7fb32d2635b49a4ad965f3a787
tree94f6d8444c6934f38a0a486c16d0cc6b215357bf
parent1f35fcf06dd414c9ee77d0dc82b1ae8ec67c1b20
glshader: properly unref the stages on failure

When failing in the varargs functions, all the stage objects not handled need to
be unreffed to prevent a leak.
gst-libs/gst/gl/gstglshader.c
gst-libs/gst/gl/gstglutils.c