Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit d8056fb

Browse files
Merge pull request #6923 from runrevmark/bugfix-21925
[[ Bug 21925 ]] Fix memory leak when using macOS Debug method
2 parents ca4df31 + bd3dc35 commit d8056fb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/notes/bugfix-21925.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix memory leak when using put [ into msg ] on macOS when there is no message box

engine/src/dskmac.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,7 +2964,10 @@ struct MCMacDesktop: public MCSystemInterface, public MCMacSystemService
29642964
{
29652965
CFStringRef t_string;
29662966
if (MCStringConvertToCFStringRef(p_string, t_string))
2967+
{
29672968
NSLog(CFSTR("%@"), t_string);
2969+
CFRelease(t_string);
2970+
}
29682971
}
29692972

29702973
virtual real64_t GetCurrentTime(void)

0 commit comments

Comments
 (0)