mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 06:35:41 +01:00
Fix for configuration window from Steve Ratcliffe <steve@parabola.demon.co.uk>
This commit is contained in:
parent
501591bbe1
commit
2dd5cd1273
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue