gdi32: Add a missing release in the error path.

This commit is contained in:
Alexandre Julliard 2011-08-05 10:58:16 +02:00
parent 1923e0e159
commit 805f083f34
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ update_format:
info->bmiHeader.biPlanes = 1;
info->bmiHeader.biBitCount = bmp->bitmap.bmBitsPixel;
if (info->bmiHeader.biHeight > 0) info->bmiHeader.biHeight = -info->bmiHeader.biHeight;
GDI_ReleaseObj( hbitmap );
return ERROR_BAD_FORMAT;
}