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.
This commit is contained in:
Vadim Zeitlin
2019-05-16 22:18:38 +02:00
parent 65e5c3dbc7
commit 8a1e679640

View File

@@ -329,8 +329,6 @@ void wxStaticBitmap::SetImageNoCopy( wxGDIImage* image)
MSWReplaceImageHandle((WXLPARAM)handle);
DeleteCurrentHandleIfNeeded();
m_currentHandle = (WXHANDLE)handle;
m_ownsCurrentHandle = handle != handleOrig;