Copy pixmap to match others ctors in wxQT, thanks @seandpagnier
This should fix a double free crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0f5be542ae
commit
fa98a771e3
@ -122,7 +122,7 @@ class wxBitmapRefData: public wxGDIRefData
|
||||
wxBitmapRefData( const wxBitmapRefData& data ) : wxGDIRefData()
|
||||
{
|
||||
m_mask = NULL;
|
||||
m_qtPixmap = data.m_qtPixmap;
|
||||
m_qtPixmap = new QPixmap(data.m_qtPixmap->handle());
|
||||
}
|
||||
|
||||
wxBitmapRefData( int width, int height, int depth ) : wxGDIRefData()
|
||||
|
Loading…
Reference in New Issue
Block a user