mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
Fix mem leak.
This commit is contained in:
parent
e4554892b0
commit
b0c6dc5ab2
2 changed files with 3 additions and 2 deletions
4
gmqcc.h
4
gmqcc.h
|
@ -1118,13 +1118,13 @@ enum {
|
|||
# define GMQCC_TYPE_FLAGS
|
||||
# define GMQCC_DEFINE_FLAG(X) X,
|
||||
# include "opts.def"
|
||||
COUNT_FLAGS
|
||||
COUNT_FLAGS,
|
||||
};
|
||||
static const opts_flag_def opts_flag_list[] = {
|
||||
# define GMQCC_TYPE_FLAGS
|
||||
# define GMQCC_DEFINE_FLAG(X) { #X, LONGBIT(X) },
|
||||
# include "opts.def"
|
||||
{ NULL, LONGBIT(0) }
|
||||
{ NULL, LONGBIT(0)}
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
1
pak.c
1
pak.c
|
@ -195,6 +195,7 @@ static pak_file_t *pak_open_write(const char *file) {
|
|||
*/
|
||||
/* TODO backup directory clean */
|
||||
|
||||
mem_d(pak);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue