diff options
author | Patrick Luby <guibmacdev@gmail.com> | 2024-05-25 21:09:46 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-05-26 11:31:53 +0200 |
commit | 2802ba82d2ac0b9d831117dcc47375fd1dd01415 (patch) | |
tree | 6ded4d46cfb605a45f68a083a47981fb3c7ab785 | |
parent | 6e322952a57484c1d823acd5c19797c7d3dea579 (diff) |
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 <andras.timar@collabora.com>
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-rw-r--r-- | vcl/ios/iosinst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |