[vlc-commits] bluray: fix memory leak

Hannes Domani git at videolan.org
Thu May 5 12:36:11 CEST 2016


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed May  4 21:22:41 2016 +0200| [fa5c29224e01f1d5330ba7a4cb28d1a360f0386f] | committer: Petri Hintukainen

bluray: fix memory leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa5c29224e01f1d5330ba7a4cb28d1a360f0386f
---

 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 6e35875..44f8fc5 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);
 



More information about the vlc-commits mailing list