Merge pull request #2529 from heuripedes/master

(shader_glsl.c) Fix memory leak
This commit is contained in:
Twinaphex 2015-12-06 18:31:50 +01:00
commit 4e14e6e6fa
2 changed files with 7 additions and 0 deletions

View File

@ -305,6 +305,11 @@ int rarch_main(int argc, char *argv[], void *data)
main_exit(args); main_exit(args);
#endif #endif
#ifdef HAVE_THREADS
async_job_free(global->async_jobs);
global->async_jobs = NULL;
#endif
return 0; return 0;
} }

View File

@ -715,6 +715,8 @@ static void gl_glsl_deinit(void *data)
return; return;
gl_glsl_destroy_resources(glsl); gl_glsl_destroy_resources(glsl);
free(glsl);
} }
static void *gl_glsl_init(void *data, const char *path) static void *gl_glsl_init(void *data, const char *path)