Skip to content

Commit

Permalink
I don't know why the unload method was empty but now it clears all ca…
Browse files Browse the repository at this point in the history
…ched files when calling Assets.unloadLibrary("");
  • Loading branch information
loudoweb committed Jun 6, 2023
1 parent de7bf3e commit 76c7665
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lime/utils/AssetLibrary.hx
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,13 @@ class AssetLibrary
}
}

public function unload():Void {}
public function unload():Void {
cachedBytes.clear();
cachedFonts.clear();
cachedImages.clear();
cachedAudioBuffers.clear();
cachedText.clear();
}

@:noCompletion private function __assetLoaded(id:String):Void
{
Expand Down

0 comments on commit 76c7665

Please sign in to comment.