From: fliep Date: Tue, 26 May 2009 20:11:57 +0000 (+0000) Subject: Edited platform-dependent part of Blorb layer to use g_malloc() functions, they are... X-Git-Tag: v0.9~371 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6b46e650c91192cf8d483f8aa560dbe36de37cd1;p=projects%2Fchimara%2Fchimara.git Edited platform-dependent part of Blorb layer to use g_malloc() functions, they are safer. --- diff --git a/libchimara/gi_blorb.c b/libchimara/gi_blorb.c index 329280d..9f4c031 100644 --- a/libchimara/gi_blorb.c +++ b/libchimara/gi_blorb.c @@ -582,22 +582,22 @@ giblorb_resdesc_t *giblorb_bsearch(giblorb_resdesc_t *sample, /* Boring utility functions. If your platform doesn't support ANSI malloc(), feel free to edit these however you like. */ -#include /* The OS-native header file -- you can edit +#include /* The OS-native header file -- you can edit this too. */ static void *giblorb_malloc(glui32 len) { - return malloc(len); + return g_malloc(len); } static void *giblorb_realloc(void *ptr, glui32 len) { - return realloc(ptr, len); + return g_realloc(ptr, len); } static void giblorb_free(void *ptr) { - free(ptr); + g_free(ptr); }