Adding ref_count in structure MSFactory to keep track of users through initializations.
Modifying ms_factory_destroy to destroy it and its contents when no one is using it anymore. Modifying ms_factory_uninit to destroy the card manager and webcam manager when there is no references to them.
Showing
Please register or sign in to comment