Re #446 Fixed 2 memory leaks in car skin detection (happens in drivers and cars select menu) and available tracks listing (happens once when entering the race mode selection menu)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3858 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 8a44debb8099b56d339c39dab1ff9fdaf8f53056 Former-commit-id: 4aabc586d2f2282632c2ebec9f90dd0e0d31f482
This commit is contained in:
parent
eeb6a61dc8
commit
e677e59add
2 changed files with 4 additions and 0 deletions
|
@ -646,6 +646,8 @@ void GfDriver::getPossibleSkinsInFolder(const std::string& strCarId,
|
|||
while (pCurIntFile != pIntFileList);
|
||||
}
|
||||
|
||||
GfDirFreeList(pIntFileList, NULL);
|
||||
|
||||
// Search for skinned logo files if any.
|
||||
tFList *pLogoFileList =
|
||||
GfDirGetListFiltered(strFolderPath.c_str(), pszLogoTexName, pszLogoTexExt);
|
||||
|
|
|
@ -160,6 +160,8 @@ GfTracks::GfTracks()
|
|||
_pPrivate->mapTracksById[pszTrackId] = pTrack;
|
||||
}
|
||||
while ((pTrackFolder = pTrackFolder->next) != lstTrackFolders);
|
||||
|
||||
GfDirFreeList(lstTrackFolders, NULL, true, true);
|
||||
}
|
||||
while ((pCatFolder = pCatFolder->next) != lstCatFolders);
|
||||
|
||||
|
|
Loading…
Reference in a new issue