mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
SW: Comment bad free calls to pointers that are never heap allocated.
Patch from Striker. git-svn-id: https://svn.eduke32.com/eduke32@7508 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a60905524c
commit
864ab5cac5
1 changed files with 5 additions and 5 deletions
|
@ -628,7 +628,7 @@ void LoadCustomInfoFromScript(const char *filename)
|
|||
char *t;
|
||||
if (scriptfile_getstring(script, &t)) break;
|
||||
|
||||
Bfree(custommaps[curmap].LevelName);
|
||||
//Bfree(custommaps[curmap].LevelName);
|
||||
custommaps[curmap].LevelName = strdup(t);
|
||||
LevelInfo[curmap].LevelName = custommaps[curmap].LevelName;
|
||||
break;
|
||||
|
@ -638,7 +638,7 @@ void LoadCustomInfoFromScript(const char *filename)
|
|||
char *t;
|
||||
if (scriptfile_getstring(script, &t)) break;
|
||||
|
||||
Bfree(custommaps[curmap].SongName);
|
||||
//Bfree(custommaps[curmap].SongName);
|
||||
custommaps[curmap].SongName = strdup(t);
|
||||
LevelInfo[curmap].SongName = custommaps[curmap].SongName;
|
||||
break;
|
||||
|
@ -648,7 +648,7 @@ void LoadCustomInfoFromScript(const char *filename)
|
|||
char *t;
|
||||
if (scriptfile_getstring(script, &t)) break;
|
||||
|
||||
Bfree(custommaps[curmap].Description);
|
||||
//Bfree(custommaps[curmap].Description);
|
||||
custommaps[curmap].Description = strdup(t);
|
||||
LevelInfo[curmap].Description = custommaps[curmap].Description;
|
||||
break;
|
||||
|
@ -660,7 +660,7 @@ void LoadCustomInfoFromScript(const char *filename)
|
|||
if (scriptfile_getnumber(script, &n)) break;
|
||||
|
||||
Bsnprintf(s, 10, "%d : %02d", n/60, n%60);
|
||||
Bfree(custommaps[curmap].BestTime);
|
||||
//Bfree(custommaps[curmap].BestTime);
|
||||
custommaps[curmap].BestTime = strdup(s);
|
||||
LevelInfo[curmap].BestTime = custommaps[curmap].BestTime;
|
||||
break;
|
||||
|
@ -672,7 +672,7 @@ void LoadCustomInfoFromScript(const char *filename)
|
|||
if (scriptfile_getnumber(script, &n)) break;
|
||||
|
||||
Bsnprintf(s, 10, "%d : %02d", n/60, n%60);
|
||||
Bfree(custommaps[curmap].ParTime);
|
||||
//Bfree(custommaps[curmap].ParTime);
|
||||
custommaps[curmap].ParTime = strdup(s);
|
||||
LevelInfo[curmap].ParTime = custommaps[curmap].ParTime;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue