Browse Source

fix: disable MallocNanoZone on mac (#33966)

Co-authored-by: Jacek Oleksy <[email protected]>
trop[bot] 3 years ago
parent
commit
fdd268b31e

+ 5 - 0
shell/browser/resources/mac/Info.plist

@@ -41,6 +41,11 @@
     <false/>
     <key>NSQuitAlwaysKeepsWindows</key>
     <false/>
+    <key>LSEnvironment</key>
+    <dict>
+      <key>MallocNanoZone</key>
+      <string>0</string>
+    </dict>
     <key>NSMicrophoneUsageDescription</key>
     <string>This app needs access to the microphone</string>
     <key>NSCameraUsageDescription</key>

+ 5 - 0
shell/common/resources/mac/Info.plist

@@ -14,5 +14,10 @@
 	<true/>
 	<key>CFBundleVersion</key>
 	<string>${ELECTRON_VERSION}</string>
+	<key>LSEnvironment</key>
+	<dict>
+		<key>MallocNanoZone</key>
+		<string>0</string>
+	</dict>
 </dict>
 </plist>

+ 5 - 0
shell/renderer/resources/mac/Info.plist

@@ -12,5 +12,10 @@
   <true/>
   <key>NSSupportsAutomaticGraphicsSwitching</key>
   <true/>
+  <key>LSEnvironment</key>
+  <dict>
+    <key>MallocNanoZone</key>
+    <string>0</string>
+  </dict>
 </dict>
 </plist>