summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2015-03-21 17:17:46 (GMT)
committerdgp@users.sourceforge.net <dgp>2015-03-21 17:17:46 (GMT)
commit2625fbf0c006804a2253bd39743cae5560451d31 (patch)
tree0b03861b231607fb46d0c38172b5e48dbee1b12d
parentdfc13ce1f21d9132e102d64f9b8e3b0ba49279d1 (diff)
downloadtk-2625fbf0c006804a2253bd39743cae5560451d31.zip
tk-2625fbf0c006804a2253bd39743cae5560451d31.tar.gz
tk-2625fbf0c006804a2253bd39743cae5560451d31.tar.bz2
Fixed failed compile.
-rw-r--r--macosx/tkMacOSXWm.c34
1 files 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;