mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 15:40:14 +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));
|
||||
pthread_mutex_unlock(&module_data->lock);
|
||||
|
||||
module_data->cls = MODULE_CLASS_NONE;
|
||||
|
||||
if(module_data->deleter)
|
||||
module_data->deleter(module_data);
|
||||
|
||||
@@ -136,8 +138,6 @@ void module_done(struct module *module_data)
|
||||
pthread_mutex_destroy(&tmp.lock);
|
||||
|
||||
free(tmp.name);
|
||||
|
||||
module_data->cls = MODULE_CLASS_NONE;
|
||||
}
|
||||
|
||||
static const char *module_class_name_pairs[] = {
|
||||
|
||||
Reference in New Issue
Block a user