Changeset 37a65fa65e9e5f16f38a964d5696efde91f479f8

Show
Ignore:
Timestamp:
04/09/05 00:55:56 (3 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1125788156 +0000
git-parent:

[cff0739e1fbf10a805b45ddaad4a90a65c68c8c8]

git-author:
Gildas Bazin <gbazin@videolan.org> 1125788156 +0000
Message:

* modules/gui/wxwidgets/playlist.cpp: Fixed segfault. Patch by Brian Robb (vascy at hotmail).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/wxwidgets/playlist.cpp

    rdc849c8 r37a65fa  
    201201    /* Initializations */ 
    202202    p_intf = _p_intf; 
     203    pp_sds = NULL; 
    203204    i_update_counter = 0; 
    204205    i_sort_mode = MODE_NONE; 
     
    206207    p_playlist = (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, 
    207208                                                FIND_ANYWHERE ); 
    208     if( p_playlist == NULL ) 
    209     { 
    210         return; 
    211     } 
     209    if( p_playlist == NULL ) return; 
    212210 
    213211    SetIcon( *p_intf->p_sys->p_icon ); 
     
    396394Playlist::~Playlist() 
    397395{ 
    398     if( pp_sds != NULL ) 
    399         free( pp_sds ); 
    400  
    401     if( p_playlist == NULL ) 
    402     { 
    403         return; 
    404     } 
     396    if( pp_sds != NULL ) free( pp_sds ); 
     397 
     398    if( p_playlist == NULL ) return; 
    405399 
    406400    var_DelCallback( p_playlist, "item-change", ItemChanged, this );