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:
@@ -329,8 +329,6 @@ void wxStaticBitmap::SetImageNoCopy( wxGDIImage* image)
|
||||
|
||||
MSWReplaceImageHandle((WXLPARAM)handle);
|
||||
|
||||
DeleteCurrentHandleIfNeeded();
|
||||
|
||||
m_currentHandle = (WXHANDLE)handle;
|
||||
m_ownsCurrentHandle = handle != handleOrig;
|
||||
|
||||
|
Reference in New Issue
Block a user