examples: fix several memory leaks in the testegl example
authorJosep Torra <n770galaxy@gmail.com>
Thu, 27 Mar 2014 12:57:32 +0000 (13:57 +0100)
committerJulien Isorce <julien.isorce@collabora.co.uk>
Fri, 28 Mar 2014 11:40:20 +0000 (11:40 +0000)
commit5724df75231e83c510b00c851ae25aa5024e5798
treecf98681be10cdc0bd4dda179356b366022cc2536
parent6995b4d5b344a1d17de9e06245786621eae26bc4
examples: fix several memory leaks in the testegl example

Ensure to call to image_data_free in order to release GPU resources.
Also ensure to destroy EGLImage and GLTexture from proper
thread/context.

https://bugzilla.gnome.org/show_bug.cgi?id=726107
examples/egl/testegl.c