From 9a579d6af78abbc6831caf4ad2542fa3d8848c11 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sat, 5 Jan 2013 22:46:27 -0800 Subject: [PATCH] Fix memory leaks. --- Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.cpp b/Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.cpp index a7a15db7..a135aaca 100644 --- a/Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.cpp +++ b/Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.cpp @@ -133,10 +133,10 @@ void plPageInfo::Read( hsStream *s ) if (version >= 5) { fLocation.Read( s ); - fAge = s->ReadSafeString(); + fAge = s->ReadSafeString_TEMP(); if (version < 6) - delete s->ReadSafeString(); // fChapter was never used, and always "District". - fPage = s->ReadSafeString(); + s->ReadSafeString_TEMP(); // fChapter was never used, and always "District". + fPage = s->ReadSafeString_TEMP(); s->ReadLE( &fMajorVersion );