Apache OpenOffice (AOO) Bugzilla – Issue 128539
a rtl_UnicodeToTextContext is wrongly freed with rtl_destroyTextToUnicodeConverter() instead of rtl_destroyTextToUnicodeContext()
Last modified: 2022-10-22 13:20:51 UTC
http://opengrok.openoffice.org/xref/trunk/main/vcl/source/gdi/impfont.cxx?r=43ad51ff#553 The "rtl_UnicodeToTextContext aCvtContext" variable is freed with rtl_destroyTextToUnicodeConverter() instead of rtl_destroyTextToUnicodeContext(). The reason this isn't caught by the compiler is because both types are void *: typedef void* rtl_TextToUnicodeConverter; typedef void* rtl_TextToUnicodeContext; The consequence is a memory leak.
Fixed by commit fb3d7646562a8e2f3f690b2fdbc7faaa1b30aa42, resolving fixed.
Hi Damjan, would this be something we want to cherry-pick for AOO42X and AOO41X?
(In reply to Matthias Seidel from comment #2) > Hi Damjan, > > would this be something we want to cherry-pick for AOO42X and AOO41X? Yes. Most of my changes should be in AOO42X, and wouldn't hurt in AOO41X (though I would prefer AOO41X to be discontinued already). This also applies for bugs 128540, 128541 and 128542.
(In reply to damjan from comment #3) > (In reply to Matthias Seidel from comment #2) > > Hi Damjan, > > > > would this be something we want to cherry-pick for AOO42X and AOO41X? > > Yes. Most of my changes should be in AOO42X, and wouldn't hurt in AOO41X > (though I would prefer AOO41X to be discontinued already). > > This also applies for bugs 128540, 128541 and 128542. I would also like to discontinue AOO41X, but AOO42X isn't ready to be released and will not until the release blocker bugs are solved... I will start to cherry-pick then.
Cherry-picked for AOO42X with: https://github.com/apache/openoffice/commit/80d1657bcd1fa694bb38adc62ae72a65f1df0500 Cherry-picked for AOO41X with: https://github.com/apache/openoffice/commit/ff5c5583f464f22544a26624762eff87e1fd14a2