mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-07 22:05:50 +00:00
Module: do not write to maybe deleted storage
This commit is contained in:
@@ -101,6 +101,8 @@ void module_done(struct module *module_data)
|
|||||||
memcpy(&tmp, module_data, sizeof(struct module));
|
memcpy(&tmp, module_data, sizeof(struct module));
|
||||||
pthread_mutex_unlock(&module_data->lock);
|
pthread_mutex_unlock(&module_data->lock);
|
||||||
|
|
||||||
|
module_data->cls = MODULE_CLASS_NONE;
|
||||||
|
|
||||||
if(module_data->deleter)
|
if(module_data->deleter)
|
||||||
module_data->deleter(module_data);
|
module_data->deleter(module_data);
|
||||||
|
|
||||||
@@ -136,8 +138,6 @@ void module_done(struct module *module_data)
|
|||||||
pthread_mutex_destroy(&tmp.lock);
|
pthread_mutex_destroy(&tmp.lock);
|
||||||
|
|
||||||
free(tmp.name);
|
free(tmp.name);
|
||||||
|
|
||||||
module_data->cls = MODULE_CLASS_NONE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *module_class_name_pairs[] = {
|
static const char *module_class_name_pairs[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user