Minor fix: the slides string is not auto-deleted anymore, so we have to

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3227 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-10-17 21:56:16 +00:00
parent 934bbd3a8f
commit 769e932fff
+4 -2
View File
@@ -287,8 +287,10 @@ Present_DrawMovieFrame (PRESENTATION_INPUT_STATE* pPIS)
BOOLEAN BOOLEAN
ShowPresentationFile (const char *name) ShowPresentationFile (const char *name)
{ {
return ShowSlidePresentation (CaptureStringTable ( STRING pres = CaptureStringTable (LoadStringTableFile (contentDir, name));
LoadStringTableFile (contentDir, name))); BOOLEAN result = ShowSlidePresentation (pres);
DestroyStringTable (ReleaseStringTable (pres));
return result;
} }
static BOOLEAN static BOOLEAN