Commit 98d0ab3a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

qcap: Fix some memory leaks in Avi Mux.

parent f4e201ad
......@@ -192,8 +192,12 @@ static ULONG WINAPI AviMux_Release(IBaseFilter *iface)
BaseOutputPinImpl_Release(&This->out->pin.pin.IPin_iface);
for(i=0; i<This->input_pin_no; i++)
for(i=0; i<This->input_pin_no; i++) {
IPin_Disconnect(&This->in[i]->pin.pin.IPin_iface);
IMemAllocator_Release(This->in[i]->samples_allocator);
This->in[i]->samples_allocator = NULL;
BaseInputPinImpl_Release(&This->in[i]->pin.pin.IPin_iface);
}
HeapFree(GetProcessHeap(), 0, This->idx1);
HeapFree(GetProcessHeap(), 0, This);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment