[xiph-cvs] cvs commit: ao/src/plugins/esd ao_esd.c

Warren Dukes shank at xiph.org
Mon May 24 15:38:52 PDT 2004



shank       04/05/24 18:38:52

  Modified:    src/plugins/esd ao_esd.c
  Log:
  use esd_close instead of close() when clsoing the connection to esd daemon.

Revision  Changes    Path
1.9       +3 -3      ao/src/plugins/esd/ao_esd.c

Index: ao_esd.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/plugins/esd/ao_esd.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- a/ao_esd.c	7 Aug 2003 15:29:35 -0000	1.8
+++ b/ao_esd.c	24 May 2004 22:38:51 -0000	1.9
@@ -102,7 +102,7 @@
         ao_esd_internal *internal = (ao_esd_internal *) device->internal;
 
         if (!strcmp(key, "host")) {
-		free(internal->host);
+		if(internal->host) free(internal->host);
                 internal->host = strdup(value);
         }
 
@@ -165,7 +165,7 @@
 {
         ao_esd_internal *internal = (ao_esd_internal *) device->internal;
 
-	close(internal->sock);
+	esd_close(internal->sock);
 
         return 1;
 }
@@ -175,6 +175,6 @@
 {
         ao_esd_internal *internal = (ao_esd_internal *) device->internal;
 
-	free(internal->host);
+	if(internal->host) free(internal->host);
         free(internal);
 }

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list