Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit cca7227

Browse files
committed
call delete on the correct object
1 parent ca27c58 commit cca7227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web_ui/lib/src/engine/canvaskit/skia_object_cache.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ class SkiaObjectBox<R extends StackTraceDebugger, T> {
321321

322322
/// Deletes Skia objects when their wrappers are garbage collected.
323323
static final SkObjectFinalizationRegistry boxRegistry =
324-
SkObjectFinalizationRegistry(js.allowInterop((SkiaObjectBox box) {
325-
box._skDeletable.delete();
324+
SkObjectFinalizationRegistry(js.allowInterop((SkDeletable deletable) {
325+
deletable.delete();
326326
}));
327327

328328
/// Increases the reference count of this box because a new object began

0 commit comments

Comments
 (0)