Finally fixed all the memory leaks, I hope. Fixed iTunesRemote to not
[MenuTunes.git] / main.m
diff --git a/main.m b/main.m
index ec59c4e..8c15d17 100755 (executable)
--- a/main.m
+++ b/main.m
@@ -7,8 +7,14 @@
 //
 // Poink.
 #import <Cocoa/Cocoa.h>
+#import <sys/ptrace.h>
+
+static const int (*ptp)(int,int,caddr_t,int) = ptrace;
 
 int main(int argc, const char *argv[])
 {
+#ifdef MT_RELEASE
+    ptp(PT_DENY_ATTACH,getpid(),NULL,0);
+#endif
     return NSApplicationMain(argc, argv);
 }