mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Merge pull request #2529 from heuripedes/master
(shader_glsl.c) Fix memory leak
This commit is contained in:
commit
4e14e6e6fa
@ -305,6 +305,11 @@ int rarch_main(int argc, char *argv[], void *data)
|
||||
main_exit(args);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
async_job_free(global->async_jobs);
|
||||
global->async_jobs = NULL;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -715,6 +715,8 @@ static void gl_glsl_deinit(void *data)
|
||||
return;
|
||||
|
||||
gl_glsl_destroy_resources(glsl);
|
||||
|
||||
free(glsl);
|
||||
}
|
||||
|
||||
static void *gl_glsl_init(void *data, const char *path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user