[vlc-commits] ncurses: fix breakage

Rafaël Carré git at videolan.org
Fri Jun 5 11:16:28 CEST 2015


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Jun  5 11:16:05 2015 +0200| [ba6e587ac1c23285d7596f677c693aa2f5070af9] | committer: Rafaël Carré

ncurses: fix breakage

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

 modules/gui/ncurses.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 4b3f88b..2a7a06f 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1810,7 +1810,8 @@ static void *Run(void *data)
 
         Redraw(intf, input);
         HandleKey(intf, input);
-        vlc_object_release(input);
+        if (input)
+            vlc_object_release(input);
     }
     vlc_cleanup_pop();
 



More information about the vlc-commits mailing list