Commit 846784f0 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdi32: Fix leak in GdiDeleteSpoolFileHandle.

parent df01ef80
......@@ -2766,6 +2766,7 @@ BOOL WINAPI GdiDeleteSpoolFileHandle( HANDLE h )
for (i = 0; i < sh->devmodes_no; i++)
HeapFree( GetProcessHeap(), 0, sh->devmodes[i].devmode );
HeapFree( GetProcessHeap(), 0, sh->devmodes );
HeapFree( GetProcessHeap(), 0, sh );
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment