109 remoteLayer.remoteLayer = NULL;
110 remoteLayer.jrsRemoteLayer = [remoteLayer createRemoteLayerBoundTo:JRSRemotePort];
111 CFRetain(remoteLayer); // REMIND
112 remoteLayer.frame = CGRectMake(0, 0, 720, 500); // REMIND
113 CFRetain(remoteLayer.jrsRemoteLayer); // REMIND
114 int layerID = [remoteLayer.jrsRemoteLayer layerID];
115 NSLog(@"layer id to send = %d", layerID);
116 sendLayerID(layerID);
117 }
118 #endif /* REMOTELAYER */
119 }
120
121 return self;
122 }
123
124 - (void) dealloc {
125 AWT_ASSERT_APPKIT_THREAD;
126
127 self.cglLayer = nil;
128
129 JNIEnv *env = [ThreadUtilities getJNIEnv];
130 (*env)->DeleteGlobalRef(env, m_cPlatformView);
131 m_cPlatformView = NULL;
132
133 if (fInputMethodLOCKABLE != NULL)
134 {
135 JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
136
137 JNFDeleteGlobalRef(env, fInputMethodLOCKABLE);
138 fInputMethodLOCKABLE = NULL;
139 }
140
141
142 [super dealloc];
143 }
144
145 - (void) viewDidMoveToWindow {
146 AWT_ASSERT_APPKIT_THREAD;
147
148 [AWTToolkit eventCountPlusPlus];
149
|
109 remoteLayer.remoteLayer = NULL;
110 remoteLayer.jrsRemoteLayer = [remoteLayer createRemoteLayerBoundTo:JRSRemotePort];
111 CFRetain(remoteLayer); // REMIND
112 remoteLayer.frame = CGRectMake(0, 0, 720, 500); // REMIND
113 CFRetain(remoteLayer.jrsRemoteLayer); // REMIND
114 int layerID = [remoteLayer.jrsRemoteLayer layerID];
115 NSLog(@"layer id to send = %d", layerID);
116 sendLayerID(layerID);
117 }
118 #endif /* REMOTELAYER */
119 }
120
121 return self;
122 }
123
124 - (void) dealloc {
125 AWT_ASSERT_APPKIT_THREAD;
126
127 self.cglLayer = nil;
128
129 JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
130 (*env)->DeleteGlobalRef(env, m_cPlatformView);
131 m_cPlatformView = NULL;
132
133 if (fInputMethodLOCKABLE != NULL)
134 {
135 JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
136
137 JNFDeleteGlobalRef(env, fInputMethodLOCKABLE);
138 fInputMethodLOCKABLE = NULL;
139 }
140
141
142 [super dealloc];
143 }
144
145 - (void) viewDidMoveToWindow {
146 AWT_ASSERT_APPKIT_THREAD;
147
148 [AWTToolkit eventCountPlusPlus];
149
|