From 769e932fffc5942f181435cc49e1a2d7cfce2219 Mon Sep 17 00:00:00 2001 From: avolkov Date: Sat, 17 Oct 2009 21:56:16 +0000 Subject: [PATCH] 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 --- sc2/src/uqm/intro.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sc2/src/uqm/intro.c b/sc2/src/uqm/intro.c index c0606bf1f..118fadb3c 100644 --- a/sc2/src/uqm/intro.c +++ b/sc2/src/uqm/intro.c @@ -287,8 +287,10 @@ Present_DrawMovieFrame (PRESENTATION_INPUT_STATE* pPIS) BOOLEAN ShowPresentationFile (const char *name) { - return ShowSlidePresentation (CaptureStringTable ( - LoadStringTableFile (contentDir, name))); + STRING pres = CaptureStringTable (LoadStringTableFile (contentDir, name)); + BOOLEAN result = ShowSlidePresentation (pres); + DestroyStringTable (ReleaseStringTable (pres)); + return result; } static BOOLEAN