diff --git a/controls/button.c b/controls/button.c
index d6ee7ad6861461dda374984db741a6a09f87da94..5f037300a2152cd29efa2c3b501a5c738cd775a0 100644
--- a/controls/button.c
+++ b/controls/button.c
@@ -116,10 +116,7 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
             checkBoxHeight = bmp.bmHeight / 3;
         }
         if (style < 0L || style >= MAX_BTN_TYPE)
-        {
-            WIN_ReleaseWndPtr(wndPtr);
             return -1; /* abort */
-        }
         infoPtr->state = BUTTON_UNCHECKED;
         infoPtr->hFont = 0;
         infoPtr->hImage = NULL;