Fix for configuration window from Steve Ratcliffe <steve@parabola.demon.co.uk>

This commit is contained in:
Jaroslav Kysela 1999-07-30 08:28:02 +00:00
parent 501591bbe1
commit 2dd5cd1273

View file

@ -264,10 +264,10 @@ gint conf_win( void ) {
}
ccard[i].m[j].ee_en=(gint *)g_malloc(cards[i].mixer[j].ee_n *
sizeof(gint));
if( ccard[i].m[j].ee_en == NULL ) {
if( cards[i].mixer[j].ee_n && ccard[i].m[j].ee_en == NULL) {
fprintf(stderr,nomem_msg);
g_free(ccard[i].m);
g_free(ccard[i].m[j].g_en);
g_free(ccard[i].m);
g_free(ccard);
return -1;
}