summaryrefslogtreecommitdiffstats
path: root/src/newt/native/NewtMacWindow.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/native/NewtMacWindow.m')
-rw-r--r--src/newt/native/NewtMacWindow.m36
1 files changed, 31 insertions, 5 deletions
diff --git a/src/newt/native/NewtMacWindow.m b/src/newt/native/NewtMacWindow.m
index 402389e71..187aec7fb 100644
--- a/src/newt/native/NewtMacWindow.m
+++ b/src/newt/native/NewtMacWindow.m
@@ -119,12 +119,25 @@ static jmethodID windowRepaintID = NULL;
return [super initWithFrame:frameRect];
}
+- (void) release
+{
+#ifdef VERBOSE_ON
+ NSLog(@"NewtView::release\n");
+ NSLog(@"%@",[NSThread callStackSymbols]);
+#endif
+ [super release];
+}
+
- (void) dealloc
{
if(softLocked) {
NSLog(@"NewtView::dealloc: softLock still hold @ dealloc!\n");
}
pthread_mutex_destroy(&softLockSync);
+#ifdef VERBOSE_ON
+ NSLog(@"NewtView::dealloc\n");
+ NSLog(@"%@",[NSThread callStackSymbols]);
+#endif
[super dealloc];
}
@@ -362,6 +375,24 @@ static jmethodID windowRepaintID = NULL;
return res;
}
+- (void) release
+{
+#ifdef VERBOSE_ON
+ NSLog(@"NewtWindow::release\n");
+ NSLog(@"%@",[NSThread callStackSymbols]);
+#endif
+ [super release];
+}
+
+- (void) dealloc
+{
+#ifdef VERBOSE_ON
+ NSLog(@"NewtWindow::dealloc\n");
+ NSLog(@"%@",[NSThread callStackSymbols]);
+#endif
+ [super dealloc];
+}
+
- (void) updateInsets: (JNIEnv*) env
{
NSView* nsview = [self contentView];
@@ -940,11 +971,6 @@ static jint mods2JavaMods(NSUInteger mods)
[view setDestroyNotifySent: true];
(*env)->CallVoidMethod(env, javaWindowObject, windowDestroyNotifyID);
- // Can't issue call here - locked window state, done from Java method
-
- // EOL ..
- (*env)->DeleteGlobalRef(env, javaWindowObject);
- [view setJavaWindowObject: NULL];
if (shallBeDetached) {
(*jvmHandle)->DetachCurrentThread(jvmHandle);