From: Darren S. <de...@mo...> - 2014-03-16 17:02:40
|
# HG changeset patch # User Darren Salt <de...@mo...> # Date 1394989339 0 # Node ID 702c252f32002c167b1755bd0a6f159f511fa271 # Branch default # Parent 8c0acbb8fcbb765120eb31ca637ecf82a1f213e4 Fix another UI-related crash on exit. diff --git a/src/xitk/main.c b/src/xitk/main.c --- a/src/xitk/main.c +++ b/src/xitk/main.c @@ -1255,8 +1255,10 @@ gGui->mixer.volume_level = (aevent->left + aevent->right) / 2; if(gGui->mixer.method == SOUND_CARD_MIXER) { gGui->mixer.mute = aevent->mute; - xitk_slider_set_pos(panel->mixer.slider, gGui->mixer.volume_level); - xitk_checkbox_set_state(panel->mixer.mute, gGui->mixer.mute); + if (panel) { + xitk_slider_set_pos(panel->mixer.slider, gGui->mixer.volume_level); + xitk_checkbox_set_state(panel->mixer.mute, gGui->mixer.mute); + } } } break; |