Ethereal-dev: Re: [Ethereal-dev] Re: rev 15660: /trunk/plugins/asn1/: packet-asn1.c/trunk/epan

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "W. Borgert" <debacle@xxxxxxxxxx>
Date: Sat, 3 Sep 2005 19:07:05 +0000
On Fri, Sep 02, 2005 at 09:19:31AM +0200, Anders Broman (AL/EAB) wrote:
> Could it be an option to use the new
> "* g_try_new(), g_try_renew(), g_try_new0() and g_try_malloc0()
>   are variants of existing allocation functions that can fail"
> functions from glib 2.8.0 ?

Possibly.  As I don't know much about the issue, I asked on the
Gtk+ mailing list for advice.  I got the answer, that the g_try
functions exactly are for that purpose.  Furthermore, people
told me, that since glib 2.0, the memory management can be
overridden easily(?), using g_mem_set_vtable().

Cheers, WB