[Digikam-devel] Re: memory leak in trunk...

Marcel Wiesweg marcel.wiesweg at gmx.de
Wed Dec 1 10:47:25 GMT 2010

> ==14101== 1,390,426 (20 direct, 1,390,406 indirect) bytes in 1 blocks
> are definitely lost in loss record 6,807 of 6,808
> ==14101==    at 0x40244F0: operator new(unsigned int)
> (vg_replace_malloc.c:214) ==14101==    by 0x820FFB9:
> Digikam::DigikamImageDelegate::DigikamImageDelegate(Digikam::ImageCategoriz
> edView*) (digikamimagedelegate.cpp:62)

I dont understand that. "1 block" means that this is one single allocation, 
doesnt it? The size of ImageCategoryDrawer, one d-pointer in 
ImageCategoryDrawer, one d-pointer in KCategoryDrawer, should be 
2*sizeof(void*), 16 bytes, not 1.3MB!
And there is not more than one such object per digikam application, only the 
main icon view uses it.


More information about the Digikam-devel mailing list