MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / disposeImageSource

Method disposeImageSource

packages/core/ui/image/index.ios.ts:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 public disposeImageSource() {
30 if (this.nativeViewProtected?.image === this.imageSource?.ios) {
31 this.nativeViewProtected.image = null;
32 }
33
34 if (this.imageSource?.ios) {
35 this.imageSource.ios = null;
36 }
37
38 this.imageSource = null;
39
40 queueGC();
41 }
42
43 public disposeNativeView(): void {
44 if (this.nativeViewProtected?.image) {

Callers 3

disposeNativeViewMethod · 0.95

Calls 1

queueGCFunction · 0.90

Tested by

no test coverage detected