Mercurial > mplayer.hg
diff loader/dshow/inputpin.c @ 9964:6454a2ba2e33
CoTaskMemAlloc/Free vs malloc/free cleanup
author | alex |
---|---|
date | Mon, 21 Apr 2003 20:12:43 +0000 |
parents | 174e2a58b4cd |
children | f5537cc95b02 |
line wrap: on
line diff
--- a/loader/dshow/inputpin.c Mon Apr 21 20:09:08 2003 +0000 +++ b/loader/dshow/inputpin.c Mon Apr 21 20:12:43 2003 +0000 @@ -173,7 +173,7 @@ *pmt=((CInputPin*)This)->type; if (pmt->cbFormat > 0) { - pmt->pbFormat=(char *)CoTaskMemAlloc(pmt->cbFormat); + pmt->pbFormat=(char *)malloc(pmt->cbFormat); memcpy(pmt->pbFormat, ((CInputPin*)This)->type.pbFormat, pmt->cbFormat); } return 0;