gl: fix leaks
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 8 Apr 2014 14:54:01 +0000 (15:54 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 8 Apr 2014 14:54:01 +0000 (15:54 +0100)
commitcdfce09fb7b8b52135e284e6afd04e57977d1e9b
treef9e73949706e8e0db33590d8ab4de2ec7ad18f82
parentdd77b7ad7905a46e3269da7f4c09a8504b95048a
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