Fix recycling on component callbacks (#2247)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-04-04 16:48:06 -07:00
1 parent 0a3291084f
commit 702509cb7e
2 files changed
+10 -5

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ impl Drop for VNode {
for attrs in self.vnode.dynamic_attrs.iter() {
for attr in attrs.iter() {
if let AttributeValue::Listener(listener) = &attr.value {
listener.callback.manually_drop();
listener.callback.recycle();
}
}
}