diff --git a/src/MacVim/MMAppController.h b/src/MacVim/MMAppController.h index cd5cfcfa59..991147c104 100644 --- a/src/MacVim/MMAppController.h +++ b/src/MacVim/MMAppController.h @@ -14,7 +14,10 @@ @class MMWindowController; @class MMVimController; + +#if !DISABLE_SPARKLE @class SUUpdater; +#endif @interface MMAppController : NSObject { @@ -36,7 +39,9 @@ NSMutableDictionary *inputQueues; int processingFlag; +#if !DISABLE_SPARKLE SUUpdater *updater; +#endif FSEventStreamRef fsEventStream; } diff --git a/src/MacVim/MMAppController.m b/src/MacVim/MMAppController.m index c864da75a0..92338ea10b 100644 --- a/src/MacVim/MMAppController.m +++ b/src/MacVim/MMAppController.m @@ -326,7 +326,9 @@ fsEventCallback(ConstFSEventStreamRef streamRef, [defaultMainMenu release]; defaultMainMenu = nil; currentMainMenu = nil; [appMenuItemTemplate release]; appMenuItemTemplate = nil; +#if !DISABLE_SPARKLE [updater release]; updater = nil; +#endif [super dealloc]; }