[vlc-devel] commit: macosx: Don't yield an item that may be NULL. (Pierre d'Herbemont )

git version control git at videolan.org
Sun Aug 10 20:38:51 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Aug 10 20:40:44 2008 +0200| [1315f64d33dcbd89c91f90c291d2189a6a5f3ce5] | committer: Pierre d'Herbemont 

macosx: Don't yield an item that may be NULL.

This should fix a bunch of bug report we had from apple-bureport mailing-list.

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

 modules/gui/macosx/playlistinfo.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m
index f702e30..0861b7f 100644
--- a/modules/gui/macosx/playlistinfo.m
+++ b/modules/gui/macosx/playlistinfo.m
@@ -427,7 +427,7 @@ error:
 
 - (input_item_t *)item
 {
-    vlc_gc_incref( p_item );
+    if( p_item ) vlc_gc_incref( p_item );
     return p_item;
 }
 




More information about the vlc-devel mailing list