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 committed by Cedric BAIL
parent 891957f5df
commit 56421ea30a
1 changed files with 3 additions and 0 deletions

View File

@ -490,6 +490,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);