Missing free in malloc error case in COutputPinCreate.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27871 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-10-31 13:13:52 +00:00
parent fa504971c5
commit 5fefd9f70a
1 changed files with 1 additions and 0 deletions

View File

@ -906,6 +906,7 @@ COutputPin* COutputPinCreate(const AM_MEDIA_TYPE* amt,SAMPLEPROC SampleProc,void
if (!This->vt || !This->mempin || !ivt) if (!This->vt || !This->mempin || !ivt)
{ {
COutputPin_Destroy(This); COutputPin_Destroy(This);
free(ivt);
return NULL; return NULL;
} }