forked from enlightenment/enlightenment
Mixer: Fix crash when closing mixer settings
app can already be NULL at this point, when called from _cb_win_del().
This commit is contained in:
parent
390b8a5bf5
commit
7ffc096341
|
@ -441,6 +441,9 @@ _create_ui(E_Dialog *dialog, E_Mixer_App_Dialog_Data *app)
|
|||
static void
|
||||
_mixer_app_dialog_del(E_Dialog *dialog, E_Mixer_App_Dialog_Data *app)
|
||||
{
|
||||
if (!app)
|
||||
return;
|
||||
|
||||
if (app->del.func)
|
||||
app->del.func(dialog, app->del.data);
|
||||
|
||||
|
@ -539,7 +542,7 @@ e_mixer_app_dialog_select(E_Dialog *dialog, const char *sys_card_name, const cha
|
|||
|
||||
if (n < 0)
|
||||
{
|
||||
/* FIXME device disappeared, very bad !! */
|
||||
/* FIXME device disappeared, very bad !! */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue