[Bug 26114] New: gdi32/mapping tests shows a couple memory leaks in valgrind
http://bugs.winehq.org/show_bug.cgi?id=26114 Summary: gdi32/mapping tests shows a couple memory leaks in valgrind Product: Wine Version: 1.3.13 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: minor Priority: P2 Component: gdi32 AssignedTo: wine-bugs(a)winehq.org ReportedBy: austinenglish(a)gmail.com 12 bytes in 1 blocks are definitely lost at notify_alloc (heap.c:254) by RtlAllocateHeap (heap.c:1701) by WineEngCreateFontInstance (freetype.c:3546) by FONT_SelectObject (font.c:542) by SelectObject (gdiobj.c:1114) by DC_UpdateXforms (dc.c:331) by SetMapMode (mapping.c:189) by test_world_transform (mapping.c:190) by func_mapping (mapping.c:724) by run_test (test.h:556) by main (test.h:624) ... 12 bytes in 1 blocks are definitely lost at notify_alloc (heap.c:254) by RtlAllocateHeap (heap.c:1701) by WineEngCreateFontInstance (freetype.c:3546) by FONT_SelectObject (font.c:542) by SelectObject (gdiobj.c:1114) by DC_UpdateXforms (dc.c:331) by SetWorldTransform (dc.c:1257) by test_gettransform (mapping.c:671) by func_mapping (mapping.c:728) by run_test (test.h:556) by main (test.h:624) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 --- Comment #1 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2011-02-17 23:15:19 CST --- Created an attachment (id=33323) --> (http://bugs.winehq.org/attachment.cgi?id=33323) free hfont list Does the attached patch help? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2011-02-17 23:43:18 CST --- (In reply to comment #1)
Created an attachment (id=33323) --> (http://bugs.winehq.org/attachment.cgi?id=33323) [details] free hfont list
Does the attached patch help?
Sort of. It gets rid of those two leaks, but adds: ==18499== Invalid read of size 4 ==18499== at 0x4AB6390: free_font (freetype.c:3095) ==18499== by 0x4AB8EF6: WineEngCreateFontInstance (freetype.c:3794) ==18499== by 0x4AA46D1: FONT_SelectObject (font.c:542) ==18499== by 0x4AC3DAA: SelectObject (gdiobj.c:1114) ==18499== by 0x4A8CCFE: DC_UpdateXforms (dc.c:331) ==18499== by 0x4AC53B2: SetMapMode (mapping.c:189) ==18499== by 0x48F3063: test_world_transform (mapping.c:190) ==18499== by 0x48FA35E: func_mapping (mapping.c:724) ==18499== by 0x490E3DA: run_test (test.h:556) ==18499== by 0x490E7CC: main (test.h:624) ... ==18499== Address 0x7f02c400 is 0 bytes inside a block of size 12 free'd ==18499== at 0x7BC472C5: notify_free (heap.c:262) ==18499== by 0x7BC4BBD5: RtlFreeHeap (heap.c:1747) ==18499== by 0x4AB6389: free_font (freetype.c:3099) ==18499== by 0x4AB8EF6: WineEngCreateFontInstance (freetype.c:3794) ==18499== by 0x4AA46D1: FONT_SelectObject (font.c:542) ==18499== by 0x4AC3DAA: SelectObject (gdiobj.c:1114) ==18499== by 0x4A8CCFE: DC_UpdateXforms (dc.c:331) ==18499== by 0x4AC53B2: SetMapMode (mapping.c:189) ==18499== by 0x48F3063: test_world_transform (mapping.c:190) ==18499== by 0x48FA35E: func_mapping (mapping.c:724) ==18499== by 0x490E3DA: run_test (test.h:556) ==18499== by 0x490E7CC: main (test.h:624) ==18499== -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #33323|0 |1 is obsolete| | --- Comment #3 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2011-02-17 23:52:10 CST --- Created an attachment (id=33324) --> (http://bugs.winehq.org/attachment.cgi?id=33324) free hfont list Please try this one. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 --- Comment #4 from Austin English <austinenglish(a)gmail.com> 2011-02-18 00:14:48 CST --- (In reply to comment #3)
Created an attachment (id=33324) --> (http://bugs.winehq.org/attachment.cgi?id=33324) [details] free hfont list
Please try this one.
Looks great, thanks. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 --- Comment #5 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2011-02-18 00:25:16 CST --- Does it help with a similar leak reported in the bug 26115? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 --- Comment #6 from Austin English <austinenglish(a)gmail.com> 2011-02-18 02:00:29 CST --- *** Bug 26115 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 --- Comment #7 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2011-02-21 12:08:54 CST --- Committed as http://source.winehq.org/git/wine.git/?a=commit;h=e0f5ddddf1a5f5d007576ef16d... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Austin English <austinenglish(a)gmail.com> 2011-02-22 02:13:24 CST --- Looks good now, thanks. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=26114 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #9 from Alexandre Julliard <julliard(a)winehq.org> 2011-03-04 12:35:28 CST --- Closing bugs fixed in 1.3.15. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=26114 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e0f5ddddf1a5f5d007576ef16d3 | |221c0e178dc51 CC| |focht(a)gmx.net -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org