Export to GitHub

vwkvasdopager - issue #23

GDI Objects leak in tooltip code


Posted on Jun 26, 2010 by Happy Bird

What steps will reproduce the problem? 1. Open the task manager and look at the "GDI Objects" column for the vwKvasdoPager under the process tab. 2. Move the mouse over the pager to make tooltips appear and disappear. 3. Observe the number of "GDI Objects" increase in the task manager.

What is the expected output? What do you see instead?

The number of used GDI handles should stay stable.

What version of the product are you using? On what operating system?

SVN HEAD (r10) under Windows 7

Comment #1

Posted on Jun 26, 2010 by Happy Bird

A GDI device context obtained through GetWindowDC() in tooltipUpdate() is never released.

Attaching a patch that fixes this.

Attachments

Comment #2

Posted on Jun 26, 2010 by Happy Bird

Oops! Previous patch was a "context diff". Resubmitting in unified diff format.

Attachments

Comment #3

Posted on Jul 17, 2010 by Happy Camel

patch is applied, issue closed

Status: Fixed

Labels:
Type-Defect Priority-Medium