fixes #5878. Tested on OSX 10.10.
Needs testing on OSX 10.7 till 10.9.
fixes #5878. Tested on OSX 10.10.
Needs testing on OSX 10.7 till 10.9.
fixes #5878
Binaries to test: https://builds.jonasschnelli.ch/pulls/5880/
Tested https://builds.jonasschnelli.ch/pulls/5880/bitcoin-0.10.99-osx-unsigned.dmg on 10.7 and 10.9. Works fine there. Assume 10.8 will also work.
24 | -} 25 | - 26 | -@end 27 | - 28 | -@implementation DockIconClickEventHandler 29 | +static MacDockIconHandler *s_instance = NULL;
Does s_instance ever get freed?
No. It's a singleton pattern and i assume the OS will care about the cleanup.
But i could try to proactive free it within the destructor of ~MacDockIconHandler. But this might be more or less the same cleanup as the os does.
I'd prefer if it was freed. Otherwise it will show up as a memory leak. Would be even better to do it without introducing a singleton, but I suppose that isn't possible.
Tested ACK
Updated with @laanwj nits (mem cleanup). Also removed unused code. @fanquake mind retesting? Binaries: https://builds.jonasschnelli.ch/pulls/5880/
Retested on 10.7 and 10.9. Works fine there.
ReACK Checked 10.9 & 10.10
Cherry-picked to 0.10 as 81145a6 and 2c08406