After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731967 - Pixmap leak with GtkNotebook under mingw
Pixmap leak with GtkNotebook under mingw
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.22.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
: 547656 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-06-20 14:04 UTC by Max
Modified: 2017-10-17 23:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pixmap leak fix (431 bytes, patch)
2014-06-20 14:06 UTC, Max
accepted-commit_now Details | Review

Description Max 2014-06-20 14:04:33 UTC
I faced strange GDI object leak in my gtk based application under WindowXP 64bit. After some searching i found that each gtk_notebook redraws system report increased count of GDI objects.

Problem comes from function draw_themed_tab_button located in msw_style.c where allocated pixmap not freed after final drawing.

Patch attached.
Comment 1 Max 2014-06-20 14:06:46 UTC
Created attachment 278836 [details] [review]
pixmap leak fix
Comment 2 Matthias Clasen 2014-06-22 16:30:13 UTC
Review of attachment 278836 [details] [review]:

Looks correct to me.
Comment 3 Emmanuele Bassi (:ebassi) 2017-10-17 23:59:29 UTC
*** Bug 547656 has been marked as a duplicate of this bug. ***