Evan Huus wrote:
The usage might look something like this:
wmem_allocator_t *ep_scope = wmem_create_glib_allocator();
doWork(ep_scope);
wmem_destroy_glib_allocator(ep_scope);
and then in doWork, instead of ep_alloc(numBytes) you would call
wmem_alloc(ep_scope, numBytes).
Hopefully stupid question (without having had time to look at the code):
does that mean passing ep_scope all the way down to the dissectors and
where they do their allocations? I hope not; it's been a pain just to
get pinfo all the way down into some of the routines (for expert infos).
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe