# # # patch "src/util/CocoaUtil.mm" # from [7ab47844aabb50917ff1c86d7aec4dca1ab93872] # to [fe6610adbf3c281774bc0ae2b759c043e59bf68e] # ============================================================ --- src/util/CocoaUtil.mm 7ab47844aabb50917ff1c86d7aec4dca1ab93872 +++ src/util/CocoaUtil.mm fe6610adbf3c281774bc0ae2b759c043e59bf68e @@ -6,15 +6,22 @@ #include #include "CocoaUtil.h" +#include "vocab.h" void CocoaUtil::initialize() { - NSApplicationLoad(); + I(NSApplicationLoad()); + // FIXME: we should call `release` on that, but we'd have to + // return a reference or create an object from this class to store the + // ref of this pool, making the whole situation pretty much a chicken-egg + // problem + [[NSAutoreleasePool alloc] init]; } void CocoaUtil::checkForUpdates(bool silent) { SUUpdater * updater = [SUUpdater alloc]; + [updater autorelease]; if (silent) [updater checkForUpdatesInBackground]; else