Fix weird handling of error condition when opening alsa.
This commit is contained in:
parent
be014cc270
commit
be7b97dde7
@ -303,9 +303,7 @@ acme_volume_alsa_init (AcmeVolumeAlsa *self)
|
|||||||
|
|
||||||
if (acme_volume_alsa_open (self) == FALSE)
|
if (acme_volume_alsa_open (self) == FALSE)
|
||||||
{
|
{
|
||||||
g_free (self->_priv);
|
g_warning ("Cannot open alsa.");
|
||||||
self->_priv = NULL;
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self->_priv->handle != NULL) {
|
if (self->_priv->handle != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user