Fix weird handling of error condition when opening alsa.

This commit is contained in:
Marco Pesenti Gritti 2008-09-13 22:52:20 +02:00
parent be014cc270
commit be7b97dde7

View File

@ -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) {