|
From: <mla...@us...> - 2008-01-02 00:46:50
|
Revision: 385
http://g15daemon.svn.sourceforge.net/g15daemon/?rev=385&view=rev
Author: mlampard
Date: 2008-01-01 16:46:54 -0800 (Tue, 01 Jan 2008)
Log Message:
-----------
use internal malloc function.
Modified Paths:
--------------
trunk/g15daemon-wip/g15daemon/main.c
Modified: trunk/g15daemon-wip/g15daemon/main.c
===================================================================
--- trunk/g15daemon-wip/g15daemon/main.c 2008-01-02 00:15:27 UTC (rev 384)
+++ trunk/g15daemon-wip/g15daemon/main.c 2008-01-02 00:46:54 UTC (rev 385)
@@ -528,8 +528,7 @@
pthread_join(lcd_thread,NULL);
pthread_join(keyboard_thread,NULL);
/* switch off the lcd backlight */
- char *blank=malloc(G15_BUFFER_LEN);
- memset(blank,0,G15_BUFFER_LEN);
+ char *blank=g15daemon_xmalloc(G15_BUFFER_LEN);
writePixmapToLCD((unsigned char*)blank);
free(blank);
setLCDBrightness(0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|