aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-04-24 22:20:04 +0000
committerstuconnolly <stuart02@gmail.com>2010-04-24 22:20:04 +0000
commitd04a1612e5c26e2752d6c30c5aaf5289d01e90a9 (patch)
tree4b71bfb5f0045282982f280bea0cd1b2684b0cf0 /Source/TableDocument.m
parent452e5fb8e8fd1f22be98b26ece0010af09fb3d7d (diff)
downloadsequelpro-d04a1612e5c26e2752d6c30c5aaf5289d01e90a9.tar.gz
sequelpro-d04a1612e5c26e2752d6c30c5aaf5289d01e90a9.tar.bz2
sequelpro-d04a1612e5c26e2752d6c30c5aaf5289d01e90a9.zip
Enhance SPLogger by adding the ability to run leaks() against the application upon termination with the result being written to /tmp.
To enable call setDumpLeaksOnTermination on SPLogger. Note, that SPLogger has been restructed to accommodate calling this method without writing the additional log file to the user's desktop. Could probably be enhanced a bit by someone with better C skills than me.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 0701341d..3cda7ad1 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -56,6 +56,7 @@
#import "SPAlertSheets.h"
#import "SPConstants.h"
#import "SPMainThreadTrampoline.h"
+#import "SPLogger.h"
@interface TableDocument (PrivateAPI)
@@ -112,7 +113,7 @@
statusValues = nil;
printThread = nil;
}
-
+
return self;
}
@@ -241,7 +242,7 @@
[tableWindow addChildWindow:taskProgressWindow ordered:NSWindowAbove];
[taskProgressWindow setReleasedWhenClosed:YES];
[taskProgressWindow setContentView:taskProgressLayer];
- [self centerTaskWindow];
+ [self centerTaskWindow];
}
/**
@@ -2571,6 +2572,10 @@
}
[tablesListInstance selectionShouldChangeInTableView:nil];
+
+ // Note that this call does not need to be removed in release builds as leaks analysis output is only
+ // dumped if [[SPLogger logger] setDumpLeaksOnTermination]; has been called first.
+ [[SPLogger logger] dumpLeaks];
}
#pragma mark -