Commit ebc38840 authored by Simon Morlat's avatar Simon Morlat

fix ms_web_cam_manager_destroy() crashing when called twice.

parent 69ad7356
......@@ -38,8 +38,8 @@ void ms_web_cam_manager_destroy(void){
ms_list_for_each(scm->cams,(void (*)(void*))ms_web_cam_destroy);
ms_list_free(scm->cams);
ms_list_free(scm->descs);
ms_free(scm);
}
ms_free(scm);
scm=NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment