diff --git a/lib/src/native/realm_core.dart b/lib/src/native/realm_core.dart index b140293674..44587a5075 100644 --- a/lib/src/native/realm_core.dart +++ b/lib/src/native/realm_core.dart @@ -979,10 +979,8 @@ class _RealmCore { }); } - final doNotDie = Set(); AppHandle getApp(AppConfiguration configuration) { final httpTransportHandle = _createHttpTransport(configuration.httpClient); - doNotDie.add(httpTransportHandle); final appConfigHandle = _createAppConfig(configuration, httpTransportHandle); final syncClientConfigHandle = _createSyncClientConfig(configuration); final realmAppPtr = _realmLib.invokeGetPointer(() => _realmLib.realm_app_get(appConfigHandle._pointer, syncClientConfigHandle._pointer));