[vlc-devel] commit: Fixed a potential segfault ( Felix Paul Kühne )

git version control git at videolan.org
Sat Jul 5 18:59:04 CEST 2008


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jul  5 19:01:00 2008 +0200| [6017aff3f198aa526d3b917835af438e85f0d300]

Fixed a potential segfault

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

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

diff --git a/modules/gui/macosx/prefs.m b/modules/gui/macosx/prefs.m
index 91ffe40..f384790 100644
--- a/modules/gui/macosx/prefs.m
+++ b/modules/gui/macosx/prefs.m
@@ -452,8 +452,8 @@ static VLCTreeItem *o_root_item = nil;
                     children:IsALeafNode
                     whithCategory: -1]];
                 }
+            vlc_list_release( p_list );
         }
-        vlc_list_release( p_list );
     }
     return o_children;
 }




More information about the vlc-devel mailing list