projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28026dc
)
Added missing Unref() in wxImage::Create()
author
Guillermo Rodriguez Garcia
<guille@iies.es>
Fri, 18 Feb 2000 16:15:17 +0000
(16:15 +0000)
committer
Guillermo 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
patch
|
blob
|
blame
|
history
diff --git
a/src/common/image.cpp
b/src/common/image.cpp
index ee63a318c45ad5ec572d73ad124c8823022390d3..d7a1ea7cd45ec2f40db93069049db0ebaec010b0 100644
(file)
--- a/
src/common/image.cpp
+++ b/
src/common/image.cpp
@@
-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 );