From 97be0552093b567949f1e78bfc9024dc24fba4e7 Mon Sep 17 00:00:00 2001 From: dgp Date: Sat, 21 Mar 2015 17:17:46 +0000 Subject: Fixed failed compile. --- macosx/tkMacOSXWm.c | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 82de883..37a1d25 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -342,28 +342,6 @@ static void RemapWindows(TkWindow *winPtr, { id _i1, _i2; } - -- (id) retain -{ -#if DEBUG_ZOMBIES - const char *title = [[self title] UTF8String]; - if (title != NULL) { - printf("Retaining %s with count %lu\n", title, [self retainCount]); - } -#endif - return [super retain]; -} - -- (id) retain -{ -#if DEBUG_ZOMBIES - const char *title = [[self title] UTF8String]; - if (title != NULL) { - printf("Retaining %s with count %lu\n", title, [self retainCount]); - } -#endif - return [super retain]; -} @end @implementation TKWindow @@ -379,6 +357,16 @@ static void RemapWindows(TkWindow *winPtr, kWindowNoActivatesAttribute)) ? NO : YES; } +- (id) retain +{ +#if DEBUG_ZOMBIES + const char *title = [[self title] UTF8String]; + if (title != NULL) { + printf("Retaining %s with count %lu\n", title, [self retainCount]); + } +#endif + return [super retain]; +} @end #pragma mark - @@ -6012,7 +6000,7 @@ TkWmStackorderToplevel( NSInteger windowCount = [macWindows count]; if (!windowCount) { - ckfree(windows); + ckfree((char *)windows); windows = NULL; } else { windowPtr = windows + table.numEntries; -- cgit v0.12