forked from speed-dreams/speed-dreams-code
Re #446 Fixed memory leaks in usr robot and the results only race menu
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3902 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: f56a578604d16471f5e6cd5756a47edee126a1b0 Former-commit-id: a0b02f3fd81ac3400acf4d408b13bea471c00b8b
This commit is contained in:
parent
ceaf857553
commit
8012a82146
2 changed files with 3 additions and 2 deletions
|
@ -1409,6 +1409,7 @@ void LRaceLine::FreeTrack(bool freeall)
|
|||
if (tSkidAccel) free(tSkidAccel);
|
||||
if (tAccelExit) free(tAccelExit);
|
||||
if (tSkidCorrection) free(tSkidCorrection);
|
||||
if (tBumpCaution) free(tBumpCaution);
|
||||
|
||||
tSpeed = NULL;
|
||||
tLaneShift = NULL;
|
||||
|
|
|
@ -564,7 +564,7 @@ rmResScreenActivate(void * /* dummy */)
|
|||
static void
|
||||
rmResScreenShutdown(void * /* dummy */)
|
||||
{
|
||||
for (int i = 1; i < rmNMaxResRows; i++)
|
||||
for (int i = 0; i < rmNMaxResRows; i++)
|
||||
FREEZ(rmResRowText[i]);
|
||||
}
|
||||
|
||||
|
@ -677,7 +677,7 @@ RmResScreenSetHeader(const char *pszHeader)
|
|||
rmbResMenuChanged = true;
|
||||
}
|
||||
|
||||
// Cleanup the give row text :
|
||||
// Cleanup the given row text :
|
||||
// * replace leading zeros in non-time columns.
|
||||
static char*
|
||||
rmCleanRowText(const char* pszText)
|
||||
|
|
Loading…
Reference in a new issue