[vlc-devel] [PATCH] bluray: fix memory leak
Hannes Domani
ssbssa at yahoo.de
Wed May 4 21:22:41 CEST 2016
---
modules/access/bluray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index cb4c56c..53d2a09 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -211,7 +211,7 @@ struct subpicture_updater_sys_t
static void unref_subpicture_updater(subpicture_updater_sys_t *p_sys)
{
vlc_mutex_lock(&p_sys->lock);
- int refs = p_sys->ref_cnt--;
+ int refs = --p_sys->ref_cnt;
p_sys->p_overlay = NULL;
vlc_mutex_unlock(&p_sys->lock);
--
2.8.1
More information about the vlc-devel
mailing list