We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60d760 commit 730b18eCopy full SHA for 730b18e
src/main/java/ca/weblite/objc/Proxy.java
@@ -184,9 +184,11 @@ public static Proxy load(Pointer peer){
184
* leave the Objective-C object intact.
185
*/
186
public void dispose(boolean sendDeallocMessage){
187
- proxyCache.remove(getPeer());
188
- if ( sendDeallocMessage ){
189
- send("dealloc");
+ synchronized(proxyCache) {
+ proxyCache.remove(getPeer());
+ if ( sendDeallocMessage ){
190
+ send("dealloc");
191
+ }
192
}
193
194
0 commit comments