fixed some leaks in progress.c
This commit is contained in:
parent
4acfc71887
commit
c5c98d2324
1 changed files with 2 additions and 0 deletions
|
@ -160,6 +160,7 @@ static void progress_read(SDL_RWops *file) {
|
|||
}
|
||||
|
||||
free(buf);
|
||||
SDL_RWclose(vfile);
|
||||
}
|
||||
|
||||
typedef void (*cmd_preparefunc_t)(size_t*, void**);
|
||||
|
@ -319,6 +320,7 @@ static void progress_write(SDL_RWops *file) {
|
|||
}
|
||||
|
||||
free(buf);
|
||||
SDL_RWclose(file);
|
||||
}
|
||||
|
||||
#ifdef PROGRESS_UNLOCK_ALL
|
||||
|
|
Loading…
Reference in a new issue