diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-24 17:31:40 +0200 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-24 17:31:40 +0200 | 
| commit | 43a026b8883399a8a72bdf902a4befb83edf2dc6 (patch) | |
| tree | 62a2c952721c1858db4380509258e6339e10e5af | |
| parent | d8dc7222635023720f7aeb4e9a14a678ca2d5344 (diff) | |
Track and cancel requests in client_free
| -rw-r--r-- | audio/unix.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/audio/unix.c b/audio/unix.c index a39f1806..3d0b6d7b 100644 --- a/audio/unix.c +++ b/audio/unix.c @@ -94,6 +94,9 @@ static void client_free(struct unix_client *client)  {  	struct a2dp_data *a2dp; +	if (client->req_id) +		client->cancel(client->dev, client->req_id); +  	switch (client->type) {  	case TYPE_SINK:  	case TYPE_SOURCE: @@ -797,6 +800,9 @@ static void start_resume(struct audio_device *dev, struct unix_client *client)  		goto failed;  	} +	client->req_id = id; +	client->dev = dev; +  	return;  failed: | 
