http://bugs.winehq.org/show_bug.cgi?id=26114
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #2 from Austin English austinenglish@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==