[vlc-devel] commit: Fix memory leak ( Rémi Denis-Courmont )
git version control
git at videolan.org
Fri Sep 26 17:51:11 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Fri Sep 26 18:54:40 2008 +0300| [c8d1a938f66238676c32b4dae55451290f5590bc] | committer: Rémi Denis-Courmont
Fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8d1a938f66238676c32b4dae55451290f5590bc
---
src/modules/entry.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/modules/entry.c b/src/modules/entry.c
index 8e85175..9a99abb 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -40,6 +40,7 @@ static void vlc_module_destruct (gc_object_t *obj)
module_t *module = vlc_priv (obj, module_t);
vlc_mutex_destroy (&module->lock);
+ free (module->psz_object_name);
free (module);
}
@@ -89,6 +90,7 @@ module_t *vlc_module_create (vlc_object_t *obj)
static void vlc_submodule_destruct (gc_object_t *obj)
{
module_t *module = vlc_priv (obj, module_t);
+ free (module->psz_object_name);
free (module);
}
More information about the vlc-devel
mailing list