Update of /cvsroot/alsa/alsa-lib/src/pcm
In directory sc8-pr-cvs1:/tmp/cvs-serv13319

Modified Files:
        pcm.c pcm_mmap.c 
Log Message:
Added snd_pcm_munmap() call to snd_pcm_close() - free all resources

Index: pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v
retrieving revision 1.255
retrieving revision 1.256
diff -u -r1.255 -r1.256
--- pcm.c       4 May 2003 20:06:30 -0000       1.255
+++ pcm.c       22 Jun 2003 09:59:03 -0000      1.256
@@ -665,6 +665,8 @@
                if (err < 0)
                        return err;
        }
+       if (pcm->mmap_channels)
+               snd_pcm_munmap(pcm);
        while (!list_empty(&pcm->async_handlers)) {
                snd_async_handler_t *h = list_entry(pcm->async_handlers.next, 
snd_async_handler_t, hlist);
                snd_async_del_handler(h);

Index: pcm_mmap.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm_mmap.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- pcm_mmap.c  23 Apr 2003 12:42:00 -0000      1.66
+++ pcm_mmap.c  22 Jun 2003 09:59:03 -0000      1.67
@@ -476,8 +476,8 @@
                return err;
        free(pcm->mmap_channels);
        free(pcm->running_areas);
-       pcm->mmap_channels = 0;
-       pcm->running_areas = 0;
+       pcm->mmap_channels = NULL;
+       pcm->running_areas = NULL;
        return 0;
 }
 



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to