ssyyjj88 / simple-iphone-image-processing

Automatically exported from code.google.com/p/simple-iphone-image-processing
0 stars 0 forks source link

Memory Leak on Image class with the UIImage constructor #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Use the Image::createImage(UIImage*,int width,int height) method to create a 
new Image object
Notice that upon destruction of the object the m_imageData variable does not 
get released

To fix this add:
m_ownsData=true;
To the bottom of the constructor mentioned at the top of this issue.

Original issue reported on code.google.com by w...@b2cloud.com.au on 29 Sep 2011 at 6:45