Przeglądaj źródła

fix signals leaking memory

Evan Almloff 1 rok temu
rodzic
commit
8322b508a7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/signals/src/copy_value.rs

+ 1 - 1
packages/signals/src/copy_value.rs

@@ -93,7 +93,7 @@ fn current_owner<S: Storage<T>, T>() -> Owner<S> {
 }
 
 fn owner_in_scope<S: Storage<T>, T>(scope: ScopeId) -> Owner<S> {
-    match consume_context_from_scope(scope) {
+    match scope.has_context() {
         Some(rt) => rt,
         None => {
             let owner = S::owner();