Fixed a double-free bug in the new Legacy Video code and added files to

the Windows project file.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3103 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2008-11-29 06:19:11 +00:00
parent 7ef692df98
commit 713d534c39
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -916,6 +916,10 @@ SOURCE=..\sc2code\libs\video\dukvid.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\libs\video\legacyplayer.c
# End Source File
# Begin Source File
SOURCE=..\sc2code\libs\video\vfileins.c
# End Source File
# Begin Source File
@@ -936,12 +940,20 @@ SOURCE=..\sc2code\libs\video\videodec.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\libs\video\vidintrn.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\libs\video\vidplayer.c
# End Source File
# Begin Source File
SOURCE=..\sc2code\libs\video\vidplayer.h
# End Source File
# Begin Source File
SOURCE=..\sc2code\libs\video\vresins.c
# End Source File
# End Group
# Begin Group "threads"
+1 -1
View File
@@ -34,7 +34,7 @@ FreeLegacyVideoData (void *data)
if (pLV->audio)
HFree (pLV->audio);
if (pLV->speech)
HFree (pLV->video);
HFree (pLV->speech);
HFree (pLV);
return TRUE;