From abbecf5807ef4485424f1cf855c4f64fb655aae2 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Tue, 26 May 2009 20:11:57 +0000 Subject: [PATCH] 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 --- libchimara/gi_blorb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.30.2