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:
Mariano Reingart 2014-09-29 04:14:17 +00:00
parent 0f5be542ae
commit fa98a771e3

View File

@ -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()