mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
fix leaking objc (#1898)
This commit is contained in:
@@ -249,6 +249,7 @@ Device::~Device() {
|
|||||||
for (auto& l : library_map_) {
|
for (auto& l : library_map_) {
|
||||||
l.second->release();
|
l.second->release();
|
||||||
}
|
}
|
||||||
|
stream_map_.clear();
|
||||||
device_->release();
|
device_->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user