Commit 93cf916a authored by Simon Morlat's avatar Simon Morlat

fix horrible memory leak

parent 203c5bbc
......@@ -129,7 +129,7 @@ void ogl_display_free(struct opengles_display* gldisp) {
for(i=0; i<MAX_IMAGE; i++) {
if (gldisp->yuv[i]) {
ms_free(gldisp->yuv[i]);
freemsg(gldisp->yuv[i]);
gldisp->yuv[i] = NULL;
}
}
......@@ -202,7 +202,7 @@ void ogl_display_uninit(struct opengles_display* gldisp, bool_t freeGLresources)
ms_message("uninit opengles_display (gl initialized:%d)\n", gldisp->glResourcesInitialized);
for(i=0; i<MAX_IMAGE; i++) {
if (gldisp->yuv[i]) {
ms_free(gldisp->yuv[i]);
freemsg(gldisp->yuv[i]);
gldisp->yuv[i] = NULL;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment