comctl32: Fix a leak on error path (Coverity).

This commit is contained in:
Nikolay Sivov 2014-03-24 21:35:02 +04:00 committed by Alexandre Julliard
parent 61a92af5ca
commit d60910fc14
1 changed files with 3 additions and 1 deletions

View File

@ -129,8 +129,10 @@ HRESULT WINAPI DPA_LoadStream (HDPA *phDpa, PFNDPASTREAM loadProc,
if (!hDpa)
return E_OUTOFMEMORY;
if (!DPA_Grow (hDpa, streamData.dwItems))
if (!DPA_Grow (hDpa, streamData.dwItems)) {
DPA_Destroy (hDpa);
return E_OUTOFMEMORY;
}
/* load data from the stream into the dpa */
ptr = hDpa->ptrs;