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:
Jean-Philippe Andre 2014-01-15 12:36:27 +09:00
parent 390b8a5bf5
commit 7ffc096341
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}