Browse Source

Fixed a potential memory leak

tags/2021-05-28
hogliux 9 years ago
parent
commit
d03755c9e0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_gui_basics/native/juce_mac_MouseCursor.mm

+ 2
- 0
modules/juce_gui_basics/native/juce_mac_MouseCursor.mm View File

@@ -91,6 +91,8 @@ namespace MouseCursorHelpers
}
}
[originalImage release];
NSDictionary* info = [NSDictionary dictionaryWithContentsOfFile: juceStringToNS (cursorPath + "/info.plist")];
const float hotspotX = (float) [[info valueForKey: nsStringLiteral ("hotx")] doubleValue];


Loading…
Cancel
Save