fix(memory): release retired runtimes and idle download heap

This commit is contained in:
zarzet
2026-09-07 16:28:47 +07:00
parent c48406f5d0
commit e3f7817b29
4 changed files with 48 additions and 0 deletions
@@ -1893,6 +1893,10 @@ class DownloadQueueNotifier extends Notifier<DownloadQueueState> {
_downloadCount = 0;
}
if (!stoppedWhilePaused) {
await PlatformBridge.releaseNativeMemory();
}
_log.i(
'Queue stats - completed: $_completedInSession, failed: $_failedInSession, totalAtStart: $_totalQueuedAtStart',
);