twn_gl_15_rendering.c: fix memory leak in finally_render_skybox()
This commit is contained in:
parent
8c34d5afe2
commit
9ab7d1edff
@ -502,7 +502,8 @@ void finally_render_skybox(char *paths) {
|
|||||||
SDL_free(paths_cache);
|
SDL_free(paths_cache);
|
||||||
paths_cache = paths;
|
paths_cache = paths;
|
||||||
loading_needed = true;
|
loading_needed = true;
|
||||||
}
|
} else
|
||||||
|
SDL_free(paths);
|
||||||
|
|
||||||
Matrix4 camera_look_at_matrix_solipsist = camera_look_at_matrix;
|
Matrix4 camera_look_at_matrix_solipsist = camera_look_at_matrix;
|
||||||
camera_look_at_matrix_solipsist.row[3].x = 0;
|
camera_look_at_matrix_solipsist.row[3].x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user