This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit a9b1a7d
committed
[[ Bug 21918 ]] Memory leak when manipulating four-char-codes on macOS
This patch fixes a leak in the macOS platform specific FourCharCodeFromString
function. In order to convert a string into a FourCharCode integer, the
string is temporarily converted to a CString. Previously, however, this
temporary CString was not being deleted. The explicit conversion has been replaced
by an AutoStringRefAsCString auto class which fixes the leak.1 parent a5f3460 commit a9b1a7d
2 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments