Project

General

Profile

Actions

Bug #7407

closed

setDeferredToolTip causes browser side memory leak

Added by Georg Baumann about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
Start date:
01/20/2020
Due date:
% Done:

0%

Estimated time:

Description

Hello,

using setDeferredToolTip causes a memory leak on browser side with Wt 3.5.0.

This can be reproduced quite easily with the attached source (a modified Wt example).

It uses a WTableView, where the delegate for a table cell calls setDeferredToolTip.

If you run the program and move the slider of the vertical scrollbar rapidly up and down,

you can watch the browser memory increasing quite fast e.g. in Windows task-manager.

The memory is not freeĆ­d, if you manually trigger browser garbage collection within the development tools.

I have tested this with Chrome and Firefox.

Kind Regards


Files

Sample.h (564 Bytes) Sample.h Georg Baumann, 01/20/2020 09:50 AM
ComboDelegateTable.cpp (2.43 KB) ComboDelegateTable.cpp Georg Baumann, 01/20/2020 09:50 AM
Actions #1

Updated by Roel Standaert about 4 years ago

  • Target version set to 4.2.1
Actions #2

Updated by Roel Standaert about 4 years ago

  • Status changed from New to Resolved

Looks like this is because we were connecting mouseenter, mousemove, and mouseleave using jQuery, which made jQuery.cache grow. I pushed a fix.

Actions #3

Updated by Roel Standaert about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF