Modules are created at initialization and destroyed at exit (after all VLC threads are terminated) There is no need to count references.