From: Philip Chimento 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-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=abbecf5807ef4485424f1cf855c4f64fb655aae2;p=rodin%2Fchimara.git Edited platform-dependent part of Blorb layer to use g_malloc() functions, they are safer. git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@94 ddfedd41-794f-dd11-ae45-00112f111e67 --- 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); }