Commit f9a54b04 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* fixed 2 segfaults when switching categories within the preferences. The...

* fixed 2 segfaults when switching categories within the preferences. The options for CONFIG_SUBCATEGORY and CONFIG_CATEGORY aren't displayed, yet.
parent 349460f2
...@@ -632,7 +632,7 @@ static VLCTreeItem *o_root_item = nil; ...@@ -632,7 +632,7 @@ static VLCTreeItem *o_root_item = nil;
do do
{ {
p_item++; p_item++;
if( !p_item ) if( !p_item || !p_item->i_type )
{ {
msg_Err( p_intf, "invalid preference item found" ); msg_Err( p_intf, "invalid preference item found" );
break; break;
......
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
if( self != nil ) if( self != nil )
{ {
p_item = _p_item; p_item = _p_item;
psz_name = strdup( p_item->psz_name ); psz_name = p_item->psz_name;
o_label = NULL; o_label = NULL;
i_type = p_item->i_type; i_type = p_item->i_type;
i_view_type = 0; i_view_type = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment