Changeset 37a65fa65e9e5f16f38a964d5696efde91f479f8
- 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
| rdc849c8 |
r37a65fa |
|
| 201 | 201 | /* Initializations */ |
|---|
| 202 | 202 | p_intf = _p_intf; |
|---|
| | 203 | pp_sds = NULL; |
|---|
| 203 | 204 | i_update_counter = 0; |
|---|
| 204 | 205 | i_sort_mode = MODE_NONE; |
|---|
| … | … | |
| 206 | 207 | p_playlist = (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, |
|---|
| 207 | 208 | FIND_ANYWHERE ); |
|---|
| 208 | | if( p_playlist == NULL ) |
|---|
| 209 | | { |
|---|
| 210 | | return; |
|---|
| 211 | | } |
|---|
| | 209 | if( p_playlist == NULL ) return; |
|---|
| 212 | 210 | |
|---|
| 213 | 211 | SetIcon( *p_intf->p_sys->p_icon ); |
|---|
| … | … | |
| 396 | 394 | Playlist::~Playlist() |
|---|
| 397 | 395 | { |
|---|
| 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; |
|---|
| 405 | 399 | |
|---|
| 406 | 400 | var_DelCallback( p_playlist, "item-change", ItemChanged, this ); |
|---|