glib overiding default memory allocator
- From: shane <shane get topica com>
- To: "gtk-list redhat com" <gtk-list redhat com>
- Subject: glib overiding default memory allocator
- Date: Tue, 01 Feb 2000 16:12:26 -0800
Hi, I've been using glib for a little while now and I've been wanting to
integrate a small feature into the library iself. At least submit it
for a possible patch.
What I want to do is be able to override the functions to g_malloc,
g_malloc0, g_realloc, and g_free.
I've written a very simple memory leak detectory using the __LINE__ and
__FILE__ macros that allows one to detect a set of common memory
problems, leaks, double frees, free/realloc on unititalized pointer.
Trouble is, I've never actually developed on opensource and need to know
where to begin in regards to the whole open source development process.
I can easily go modify my copy of glib, but I want to try to get my
changes back to the community if possible and if they fit into the
general direction of glib.
Shane
--
My rate for button pushing is $25.00 per incident.
42.7 percent of all statistics are made up on the spot.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]