(Video) Call gfx_ctx_free from common function - uninit_video_input

This commit is contained in:
twinaphex 2015-05-02 05:52:34 +02:00
parent 5b733c019a
commit aac304410b
4 changed files with 4 additions and 8 deletions

View File

@ -851,10 +851,6 @@ static void d3d_free(void *data)
d3d_free_overlays(d3d);
#endif
#ifdef _XBOX
gfx_ctx_free(d3d);
#else
#ifdef HAVE_MENU
d3d_free_overlay(d3d, d3d->menu);
#endif

View File

@ -1806,8 +1806,6 @@ static void gl_free(void *data)
}
#endif
gfx_ctx_free(gl);
free(gl->empty_buf);
free(gl->conv_buffer);
free(gl);

View File

@ -202,8 +202,6 @@ static void vg_free(void *data)
vgDestroyPaint(vg->mPaintBg);
}
gfx_ctx_free(vg);
free(vg);
}

View File

@ -17,6 +17,7 @@
#include <string.h>
#include <string/string_list.h>
#include "video_driver.h"
#include "video_context_driver.h"
#include "video_thread_wrapper.h"
#include "video_pixel_converter.h"
#include "video_monitor.h"
@ -414,6 +415,9 @@ void uninit_video_input(void)
)
input_driver_free();
if (driver->video_context && driver->video_data)
gfx_ctx_free(driver->video_data);
if (
!driver->video_data_own &&
driver->video_data &&