From: Takashi Iwai Date: Tue, 22 Apr 2008 17:34:03 +0000 (+0200) Subject: Fix close in maemo callback X-Git-Tag: v1.0.17rc2~4 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b3f732f4d30f7151e7c4844e2ef9296cb59b61bf;p=alsa-plugins.git Fix close in maemo callback ALSA bug#3035: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3035 Use dbus_connection_unref() instead of the deprecated dbus_connection_close(). Signed-off-by: Takashi Iwai --- diff --git a/maemo/dsp-protocol.c b/maemo/dsp-protocol.c index 1e7ef66..df155c6 100644 --- a/maemo/dsp-protocol.c +++ b/maemo/dsp-protocol.c @@ -614,7 +614,7 @@ int dsp_protocol_destroy(dsp_protocol_t ** dsp_protocol) DENTER(); #ifdef USE_RESOURCE_MANAGER if ((*dsp_protocol)->dbus_connection) - dbus_connection_close((*dsp_protocol)->dbus_connection); + dbus_connection_unref((*dsp_protocol)->dbus_connection); #endif /* USE_RESOURCE_MANAGER */ if (*dsp_protocol) { if ((*dsp_protocol)->device)