Update of /cvsroot/alsa/alsa-kernel/drivers/opl3
In directory sc8-pr-cvs1:/tmp/cvs-serv16068/drivers/opl3

Modified Files:
        opl3_lib.c 
Log Message:
fixed the wrong order of object destruction:
  a released object is referred after the *_free() call.



Index: opl3_lib.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/drivers/opl3/opl3_lib.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- opl3_lib.c  21 Jun 2003 07:52:37 -0000      1.17
+++ opl3_lib.c  14 Aug 2003 11:05:38 -0000      1.18
@@ -440,9 +440,9 @@
        default:
                opl3->command = &snd_opl2_command;
                if ((err = snd_opl3_detect(opl3)) < 0) {
-                       snd_opl3_free(opl3);
                        snd_printd("OPL2/3 chip not detected at 0x%lx/0x%lx\n",
                                   opl3->l_port, opl3->r_port);
+                       snd_opl3_free(opl3);
                        return err;
                }
                /* detect routine returns correct hardware type */



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to