mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +08:00
fix leaking objc (#1898)
This commit is contained in:
parent
2d0f384b6f
commit
a44dc4bdb0
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user