Fixed a hFree without a corresponding allocate

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@567 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
ghaushe
2003-01-19 02:14:06 +00:00
parent 7b9af3cc3b
commit 62d84d85db
+3 -1
View File
@@ -70,6 +70,7 @@ _GetStringData (FILE *fp, DWORD length)
HFree (strdata); HFree (strdata);
return (0); return (0);
} }
ts_data = NULL;
{ {
char *s1, *s2; char *s1, *s2;
@@ -303,7 +304,8 @@ _GetStringData (FILE *fp, DWORD length)
HFree (strdata); HFree (strdata);
HFree (clipdata); HFree (clipdata);
HFree (ts_data); if (ts_data)
HFree (ts_data);
return (hData); return (hData);
} }