DeleteObject() can fail if the object is a DC, however we've already
called GDI_ReleaseObj() so don't call it again.
diff --git a/objects/gdiobj.c b/objects/gdiobj.c
index 795fd5a..79b6a27 100644
--- a/objects/gdiobj.c
+++ b/objects/gdiobj.c
@@ -877,10 +877,8 @@
/* Delete object */
- if (header->funcs &&
- header->funcs->pDeleteObject &&
- header->funcs->pDeleteObject( obj, header ))
- return TRUE;
+ if (header->funcs && header->funcs->pDeleteObject)
+ return header->funcs->pDeleteObject( obj, header );
GDI_ReleaseObj( obj );
return FALSE;