wineqtdecoder: Fix reference leaks.

Andrew Eikum aeikum at codeweavers.com
Mon Dec 5 08:42:30 CST 2016


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

On Mon, Dec 05, 2016 at 12:37:17AM +0900, Akihiro Sagawa wrote:
> 
> This fix is as same as seen in winegstreamer.
> 
> Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
> ---
>  dlls/wineqtdecoder/qtsplitter.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 

> diff --git a/dlls/wineqtdecoder/qtsplitter.c b/dlls/wineqtdecoder/qtsplitter.c
> index 1d5b808..7db7a28 100644
> --- a/dlls/wineqtdecoder/qtsplitter.c
> +++ b/dlls/wineqtdecoder/qtsplitter.c
> @@ -864,6 +864,9 @@ static ULONG WINAPI QTInPin_Release(IPin *iface)
>          if (This->pAlloc)
>              IMemAllocator_Release(This->pAlloc);
>          This->pAlloc = NULL;
> +        if (This->pReader)
> +            IAsyncReader_Release(This->pReader);
> +        This->pReader = NULL;
>          This->pin.IPin_iface.lpVtbl = NULL;
>          return 0;
>      }
> @@ -1203,6 +1206,7 @@ static HRESULT WINAPI QTInPin_Disconnect(IPin *iface)
>          {
>              IMemAllocator_Decommit(This->pAlloc);
>              IPin_Disconnect(This->pin.pConnectedTo);
> +            IPin_Release(This->pin.pConnectedTo);
>              This->pin.pConnectedTo = NULL;
>              hr = QT_RemoveOutputPins(Parser);
>          }

> 




More information about the wine-patches mailing list