Commit c8d1a938 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix memory leak

parent ab6145b2
...@@ -40,6 +40,7 @@ static void vlc_module_destruct (gc_object_t *obj) ...@@ -40,6 +40,7 @@ static void vlc_module_destruct (gc_object_t *obj)
module_t *module = vlc_priv (obj, module_t); module_t *module = vlc_priv (obj, module_t);
vlc_mutex_destroy (&module->lock); vlc_mutex_destroy (&module->lock);
free (module->psz_object_name);
free (module); free (module);
} }
...@@ -89,6 +90,7 @@ module_t *vlc_module_create (vlc_object_t *obj) ...@@ -89,6 +90,7 @@ module_t *vlc_module_create (vlc_object_t *obj)
static void vlc_submodule_destruct (gc_object_t *obj) static void vlc_submodule_destruct (gc_object_t *obj)
{ {
module_t *module = vlc_priv (obj, module_t); module_t *module = vlc_priv (obj, module_t);
free (module->psz_object_name);
free (module); free (module);
} }
......
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