2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 10:37:41 -04:00

Fixed memory leak, plString is nice

This commit is contained in:
NadnerbD
2012-02-12 21:45:48 -05:00
committed by Joseph Davies
parent c9b4c0a92d
commit 3e15b5d318

View File

@ -200,7 +200,7 @@ PyObject* pyImage::LoadJPEGFromDisk(const wchar_t* filename, uint16_t width, uin
}
// let's create a nice name for this thing based on the filename
plString name = plString::Format("PtImageFromDisk_%s", hsWStringToString(filename));
plString name = plString::Format("PtImageFromDisk_%S", filename);
hsgResMgr::ResMgr()->NewKey(name, theMipmap, plLocation::kGlobalFixedLoc);
@ -225,7 +225,7 @@ PyObject* pyImage::LoadPNGFromDisk(const wchar_t* filename, uint16_t width, uint
}
// let's create a nice name for this thing based on the filename
plString name = plString::Format("PtImageFromDisk_%s", hsWStringToString(filename));
plString name = plString::Format("PtImageFromDisk_%S", filename);
hsgResMgr::ResMgr()->NewKey(name, theMipmap, plLocation::kGlobalFixedLoc);