mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-22 23:41:07 +00:00
* Android: fix Bitmap memory leaks in CanvasController snapshots snapshotPngBase64() and snapshotBase64() create bitmaps via captureBitmap() and scaleForMaxWidth() but never recycle them, leaking native memory on every canvas snapshot invocation. Wrap both methods in nested try/finally blocks: - outer: always recycles the captured bitmap - inner: recycles the scaled bitmap only when it differs from the captured one (scaleForMaxWidth returns `this` when no scaling needed) Made-with: Cursor * fix: note Android canvas snapshot bitmap leak in changelog (#41889) (thanks @Kaneki-x) --------- Co-authored-by: Ayaan Zaidi <hi@obviy.us>