gl: fix leaks
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 8 Apr 2014 14:54:01 +0000 (15:54 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:36 +0000 (19:31 +0000)
commit7de81a33ca281f10d21270f94851c8450cd78fe6
tree13175d7aa24c7766a072fd0276104a8198fd94ad
parent4ecffcf76ba99af7468681ae7ab8393db3df90a1
gl: fix leaks

As the relevant variables are initialized to 0/NULL, we can loop
over the full range and make sure we free partial allocations
when an error happens partway through initialization.
gst-libs/gst/gl/egl/gsteglimagememory.c