Loader.free

Frees the resource from memory by calling the free construct on the resource if it has unreleased pointers and so on, and later removes the resource from the array, letting the garbage collector destroy this object.

  1. void free(string path)
    class Loader
    @safe @trusted
    void
    free
    (
    T
    )
    (
    immutable string path
    )
  2. void free(T obj)

Parameters

T

Resource class

path string

Name or Path to file resource

Examples

loader.free!Image("myImage");

Meta