From 8a1e679640fd5f55b58bd2e2c9f40e1e5a25f478 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 16 May 2019 22:18:38 +0200 Subject: [PATCH] Remove another unnecessary call from MSW wxStaticBitmap DeleteCurrentHandleIfNeeded() is already called from Free() which is unconditionally called at the beginning of the function, so there is no need to call it again. --- src/msw/statbmp.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 2a0ad74624..32a4a41c8e 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -329,8 +329,6 @@ void wxStaticBitmap::SetImageNoCopy( wxGDIImage* image) MSWReplaceImageHandle((WXLPARAM)handle); - DeleteCurrentHandleIfNeeded(); - m_currentHandle = (WXHANDLE)handle; m_ownsCurrentHandle = handle != handleOrig;