changeset 24343:bf37d4ba4b65

Always initialize pUnk pointer with zero. Should fix accidental crashes in various dshow/vfm binary codecs, caused by attempting to release unallocated data.
author voroshil
date Sat, 08 Sep 2007 06:01:43 +0000
parents 8873c972c6aa
children 09d402672398
files loader/dshow/cmediasample.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/dshow/cmediasample.c	Sat Sep 08 03:06:23 2007 +0000
+++ b/loader/dshow/cmediasample.c	Sat Sep 08 06:01:43 2007 +0000
@@ -526,6 +526,7 @@
     This->vt = (IMediaSample_vt*) malloc(sizeof(IMediaSample_vt));
     This->own_block = (char*) malloc((size_t)_size + SAFETY_ACEL);
     This->media_type.pbFormat = 0;
+    This->media_type.pUnk = 0;
 
     if (!This->vt || !This->own_block)
     {