winemenubuilder: Fix resource leak (Valgrind).

This commit is contained in:
Indrek Altpere 2014-08-27 09:53:18 +03:00 committed by Alexandre Julliard
parent 8c9011db67
commit 7b8624649a
1 changed files with 2 additions and 0 deletions

View File

@ -515,6 +515,8 @@ static HRESULT convert_to_native_icon(IStream *icoFile, int *indices, int numInd
IWICBitmapSource_Release(sourceBitmap); IWICBitmapSource_Release(sourceBitmap);
if (dstFrame) if (dstFrame)
IWICBitmapFrameEncode_Release(dstFrame); IWICBitmapFrameEncode_Release(dstFrame);
if (options)
IPropertyBag2_Release(options);
} }
hr = IWICBitmapEncoder_Commit(encoder); hr = IWICBitmapEncoder_Commit(encoder);