[mw-devel] MW3 r1271 - trunk/src

arthur at sucs.org arthur at sucs.org
Mon Nov 5 13:44:50 GMT 2012


Author: arthur
Date: 2012-11-05 13:44:50 +0000 (Mon, 05 Nov 2012)
New Revision: 1271

Modified:
   trunk/src/ipc.c
Log:
oops, clean up messages after sending them


Modified: trunk/src/ipc.c
===================================================================
--- trunk/src/ipc.c	2012-11-05 13:25:51 UTC (rev 1270)
+++ trunk/src/ipc.c	2012-11-05 13:44:50 UTC (rev 1271)
@@ -49,6 +49,7 @@
 	ipc_message_t * msg = ipcmsg_create(FOURCC("HELO"), mypid);
 	ipcmsg_append(msg, &userposn, sizeof(userposn));
 	ipcmsg_send(msg, ipcsock);
+	ipcmsg_destroy(msg);
 }
 
 void ipc_check(void)
@@ -107,6 +108,7 @@
 			ipcmsg_destination(msg, dest);
 			ipcmsg_append(msg, buff, dgram_len);
 			ipcmsg_send(msg, ipcsock);
+			ipcmsg_destroy(msg);
 		} else {
 			fprintf(stderr, "Failed to utf8_cleanup the message\n"); 
 		}




More information about the mw-devel mailing list