This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fixing r* visioned leak
- Loading branch information
Showing
with
6 additions
and
4 deletions.
-
+6
−4
src/core/RwTexRead.cpp
There are no files selected for viewing
|
|
@@ -260,11 +260,13 @@ CreateTxdImageForVideoCard() |
|
|
|
|
|
RwStream *img = RwStreamOpen(rwSTREAMFILENAME, rwSTREAMWRITE, "models\\txd.img"); |
|
|
if (img == nil) { |
|
|
if (_dwOperatingSystemVersion == OS_WINNT || _dwOperatingSystemVersion == OS_WIN2000 || _dwOperatingSystemVersion == OS_WINXP) { |
|
|
// original code does otherwise and it leaks |
|
|
delete []buf; |
|
|
delete pDir; |
|
|
|
|
|
if (_dwOperatingSystemVersion == OS_WINNT || _dwOperatingSystemVersion == OS_WIN2000 || _dwOperatingSystemVersion == OS_WINXP) |
|
|
DealWithTxdWriteError(0, TXDSTORESIZE, "CVT_CRT"); |
|
|
delete []buf; |
|
|
delete pDir; |
|
|
} |
|
|
|
|
|
return false; |
|
|
} |
|
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.