]> git.saurik.com Git - wxWidgets.git/commitdiff
Added missing Unref() in wxImage::Create()
authorGuillermo Rodriguez Garcia <guille@iies.es>
Fri, 18 Feb 2000 16:15:17 +0000 (16:15 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Fri, 18 Feb 2000 16:15:17 +0000 (16:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/image.cpp

index ee63a318c45ad5ec572d73ad124c8823022390d3..d7a1ea7cd45ec2f40db93069049db0ebaec010b0 100644 (file)
@@ -127,6 +127,8 @@ wxImage::wxImage( const wxImage* image )
 
 void wxImage::Create( int width, int height )
 {
+    UnRef();
+
     m_refData = new wxImageRefData();
 
     M_IMGDATA->m_data = (unsigned char *) malloc( width*height*3 );