Release DC in error condition on StretchDIBits.

diff --git a/dlls/gdi/dib.c b/dlls/gdi/dib.c
index c42921e..5b5fc84 100644
--- a/dlls/gdi/dib.c
+++ b/dlls/gdi/dib.c
@@ -233,6 +233,8 @@
         WORD planes, bpp;
         DWORD compr, size;
 
+        GDI_ReleaseObj( hdc );
+
         if (DIB_GetBitmapInfo( &info->bmiHeader, &width, &height, &planes, &bpp, &compr, &size ) == -1)
         {
             ERR("Invalid bitmap\n");
@@ -245,7 +247,6 @@
             return 0;
         }
 
-        GDI_ReleaseObj( hdc );
 	hdcMem = CreateCompatibleDC( hdc );
         hBitmap = CreateCompatibleBitmap(hdc, width, height);
         hOldBitmap = SelectObject( hdcMem, hBitmap );