This is an automated email from the ASF dual-hosted git repository.

damjan pushed a commit to branch icu-c-api
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/icu-c-api by this push:
     new 93a6737194 The new UCalendar body type should be released with 
ucal_close(), not "delete".
93a6737194 is described below

commit 93a6737194116f707678e078dc71d38b6ec57cd9
Author: Damjan Jovanovic <[email protected]>
AuthorDate: Mon May 5 19:09:33 2025 +0200

    The new UCalendar body type should be released with ucal_close(), not 
"delete".
    
    Patch by: me
---
 main/i18npool/source/calendar/calendar_gregorian.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/i18npool/source/calendar/calendar_gregorian.cxx 
b/main/i18npool/source/calendar/calendar_gregorian.cxx
index 6eb1d50a9d..bf57233e65 100644
--- a/main/i18npool/source/calendar/calendar_gregorian.cxx
+++ b/main/i18npool/source/calendar/calendar_gregorian.cxx
@@ -181,7 +181,7 @@ Calendar_gregorian::init(Era *_eraArray)
 
 Calendar_gregorian::~Calendar_gregorian()
 {
-        delete body;
+        ucal_close(body);
 }
 
 Calendar_hanja::Calendar_hanja()

Reply via email to