From 3e15b5d31841cc29b7dbe788cf7f025704de831b Mon Sep 17 00:00:00 2001 From: NadnerbD Date: Sun, 12 Feb 2012 21:45:48 -0500 Subject: [PATCH] Fixed memory leak, plString is nice --- Sources/Plasma/FeatureLib/pfPython/pyImage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfPython/pyImage.cpp b/Sources/Plasma/FeatureLib/pfPython/pyImage.cpp index caf8c83d..7e019a88 100644 --- a/Sources/Plasma/FeatureLib/pfPython/pyImage.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/pyImage.cpp @@ -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);