patch: fltkimgbuf memleak
29 Apr
29 Apr
4:25 p.m.
On Tue, Apr 29, 2008 at 01:24:49AM +0000, corvid wrote:
You should see a significant decrease in memory used.
Wow, indeed!
diff -pur dw2/dw/fltkimgbuf.cc dw2-cur/dw/fltkimgbuf.cc --- dw2/dw/fltkimgbuf.cc 2008-01-16 02:57:23.000000000 +0000 +++ dw2-cur/dw/fltkimgbuf.cc 2008-04-29 00:40:04.000000000 +0000 @@ -119,11 +119,10 @@ FltkImgbuf::~FltkImgbuf () //else // printf("FltkImgbuf[root %p]: deleted\n", this);
- if (!isRoot()) { + if (!isRoot()) root->detachScaledBuf (this); - delete rawdata; - }
+ delete rawdata; delete copiedRows;
if (scaledBuffers)
_______________________________________________ Dillo-dev mailing list Dillo-dev@dillo.org http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
6048
Age (days ago)
6048
Last active (days ago)
2 comments
3 participants
participants (3)
-
corvid@lavabit.com
-
jcid@dillo.org
-
Johannes.Hofmann@gmx.de