Module: wine Branch: master Commit: 51e2e1cc4bab2736d37d678e562fc408c6931300 URL: http://source.winehq.org/git/wine.git/?a=commit;h=51e2e1cc4bab2736d37d678e56...
Author: Rob Shearman rob@codeweavers.com Date: Thu Jan 31 14:45:29 2008 +0000
oleaut32: Fix a leak of bmi in OLEPictureImpl_LoadGif.
---
dlls/oleaut32/olepicture.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index d0c5f63..27c2ac9 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -1237,6 +1237,7 @@ static HRESULT OLEPictureImpl_LoadGif(OLEPictureImpl *This, BYTE *xbuf, ULONG xr This->desc.picType = PICTYPE_BITMAP; OLEPictureImpl_SetBitmap(This); DGifCloseFile(gif); + HeapFree(GetProcessHeap(),0,bmi); HeapFree(GetProcessHeap(),0,bytes); return S_OK; }