[Digikam-devel] [Bug 195610] Memory leak in image editor

Andi Clemens andi.clemens at gmx.net
Fri Jun 12 17:28:55 BST 2009


https://bugs.kde.org/show_bug.cgi?id=195610





--- Comment #5 from Andi Clemens <andi clemens gmx net>  2009-06-12 18:28:52 ---
There seems to be a memory leak in the refocus plugin:

==6849== 1,936 bytes in 2 blocks are definitely lost in loss record 473 of 491
==6849==    at 0x402441D: operator new[](unsigned int) (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==6849==    by 0x410A3AF: Digikam::RefocusMatrix::init_c_mat(Digikam::CMat*,
int) (matrix.cpp:102)
==6849==    by 0x410A45D: Digikam::RefocusMatrix::allocate_c_mat(int)
(matrix.cpp:111)
==6849==    by 0x410B214: Digikam::RefocusMatrix::copy_cvec2mat(Digikam::Mat
const*, int) (matrix.cpp:360)
==6849==    by 0x410B518: Digikam::RefocusMatrix::compute_g(Digikam::CMat
const*, int, double, double, double, bool) (matrix.cpp:431)
==6849==    by 0x410B5E2:
Digikam::RefocusMatrix::compute_g_matrix(Digikam::CMat const*, int, double,
double, double, bool) (matrix.cpp:461)
==6849==    by 0x4109840: Digikam::DImgRefocus::refocusImage(unsigned char*,
int, int, bool, int, double, double, double, double) (dimgrefocus.cpp:153)
==6849==    by 0x4109625: Digikam::DImgRefocus::filterImage()
(dimgrefocus.cpp:131)
==6849==    by 0x4107EF6: Digikam::DImgThreadedFilter::startFilterDirectly()
(dimgthreadedfilter.cpp:139)
==6849==    by 0x4107FFB: Digikam::DImgThreadedFilter::run()
(dimgthreadedfilter.cpp:152)
==6849==    by 0x50692CD: (within /usr/lib/libQtCore.so.4.5.1)
==6849==    by 0x52786BB: start_thread (in /lib/libpthread-2.10.1.so)


It doesn't seem to waste that much memory, but when you never close the editor
and work with rather big images, it might get important.

Gilles,
any idea what is wrong? For me it looks like the memory gets freed again, but I
might have overlooked something.

Andi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list