From: Jean-Philippe Orsini Date: Thu, 19 Jan 2012 22:48:33 +0000 (+0000) Subject: fixed compilation error on 64bits with ATI/AMD GPU support for v0.6.2.17 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=d022124a6a68fa29144ef7b1472f28230d3ecaba fixed compilation error on 64bits with ATI/AMD GPU support for v0.6.2.17 --- diff --git a/NEWS b/NEWS index 907068b..06315cd 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ * v0.6.2.17 ** psensor: fixed sensor type displayed in sensor preferences dialog. +** psensor: fixed compilation error on 64bits with ATI/AMD GPU support. * v0.6.2.16 diff --git a/src/lib/amd.c b/src/lib/amd.c index 71c6cac..97d6583 100644 --- a/src/lib/amd.c +++ b/src/lib/amd.c @@ -64,15 +64,6 @@ static void __stdcall *adl_main_memory_alloc(int isize) return lpbuffer; } -/* Optional Memory de-allocation function */ -static void __stdcall adl_main_memory_free(void **lpbuffer) -{ - if (*lpbuffer) { - free(*lpbuffer); - *lpbuffer = NULL; - } -} - static void *getprocaddress(void *plibrary, const char * name) { return dlsym(plibrary, name); @@ -235,7 +226,7 @@ static int init() active_amd_adapters[inumberadaptersactive-1] = iadapterindex; } - adl_main_memory_free((void **) &lpadapterinfo); + free(lpadapterinfo); /* Each Adapter has one GPU temperature sensor and one fan control sensor */