mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-30 12:23:52 +02:00
MORE CODE REVIEW
This commit is contained in:
+3
-1
@@ -233,7 +233,9 @@ export class SourceRef<S extends Source = Source> implements Disposable {
|
||||
* Calls {@link SourceRef.free}.
|
||||
*/
|
||||
[Symbol.dispose]() {
|
||||
this.free();
|
||||
if (!this.freed) {
|
||||
this.free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user