Hello Drik, On Tue, Aug 28, 2012 at 02:58:46AM +0200, Dirk Jagdmann wrote: > is there a way to register a cleanup function in a dissector to be > called when a file closed? I have a couple of hash tables allocated > using g_hash_table_new() that I want to free when the user closes > the file.
What you may want is one of the seasonal allocation functions. For details please take a look at doc/README.malloc. If you have further questions, don't hesitate to ask. Ciao Jörg -- Joerg Mayer <[email protected]> We are stuck with technology when what we really want is just stuff that works. Some say that should read Microsoft instead of technology. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <[email protected]> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:[email protected]?subject=unsubscribe
