Module: wine Branch: master Commit: 1ae9acb0df361face1b9c4f58fbd1af3ed840454 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ae9acb0df361face1b9c4f58f...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Thu Nov 8 10:37:31 2012 +0100
d3drm: Fix a leak (coverity).
---
dlls/d3drm/frame.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/d3drm/frame.c b/dlls/d3drm/frame.c index e4c7cfc..764cf58 100644 --- a/dlls/d3drm/frame.c +++ b/dlls/d3drm/frame.c @@ -2702,7 +2702,10 @@ HRESULT Direct3DRMFrame_create(REFIID riid, IUnknown* parent, IUnknown** ret_ifa
hr = IDirect3DRMFrame_QueryInterface(parent, &IID_IDirect3DRMFrame3, (void**)&p); if (hr != S_OK) + { + HeapFree(GetProcessHeap(), 0, object); return hr; + } IDirect3DRMFrame_Release(parent); IDirect3DRMFrame3_AddChild(p, &object->IDirect3DRMFrame3_iface); }