mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-25 05:10:53 +00:00
Free unwittingly malloc'd memory.
This commit is contained in:
parent
5d342f32c8
commit
292b529c51
1 changed files with 2 additions and 0 deletions
|
@ -2059,6 +2059,8 @@ static void Nextmap_OnChange(void)
|
||||||
|
|
||||||
if (mapheaderinfo[cv_nextmap.value-1] && mapheaderinfo[cv_nextmap.value-1]->forcecharacter[0] != '\0')
|
if (mapheaderinfo[cv_nextmap.value-1] && mapheaderinfo[cv_nextmap.value-1]->forcecharacter[0] != '\0')
|
||||||
CV_Set(&cv_chooseskin, mapheaderinfo[cv_nextmap.value-1]->forcecharacter);
|
CV_Set(&cv_chooseskin, mapheaderinfo[cv_nextmap.value-1]->forcecharacter);
|
||||||
|
|
||||||
|
free(gpath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue