heif_deinit

Function heif_deinit 

Source
pub unsafe extern "C" fn heif_deinit()
Expand description

Deinitialise and clean up library.

You should call heif_init() when you start using libheif and heif_deinit() when you are finished. These calls are reference counted. Each call to heif_init() should be matched by one call to heif_deinit().

Note: heif_deinit() must not be called after exit(), for example in a global C++ object’s destructor. If you do, global variables in libheif might have already been released when heif_deinit() is running, leading to a crash.

\sa heif_init()