From 2802ba82d2ac0b9d831117dcc47375fd1dd01415 Mon Sep 17 00:00:00 2001 From: Patrick Luby Date: Sat, 25 May 2024 21:09:46 -0400 Subject: Fix a memory leak CreateNSString() expects the caller to release the returned string. Change-Id: I578488dd99c4c2737894287ab3e597ba8607669e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168040 Reviewed-by: Andras Timar Reviewed-by: Patrick Luby Tested-by: Jenkins CollaboraOffice --- vcl/ios/iosinst.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx index 371d5c246ca1..548da31e58b6 100644 --- a/vcl/ios/iosinst.cxx +++ b/vcl/ios/iosinst.cxx @@ -157,7 +157,7 @@ int IosSalSystem::ShowNativeDialog( const OUString& rTitle, { (void)rButtons; - NSLog(@"%@: %@", CreateNSString(rTitle), CreateNSString(rMessage)); + NSLog(@"%@: %@", [CreateNSString(rTitle) autorelease], [CreateNSString(rMessage) autorelease]); return 0; } -- cgit