Re: Memory leak in gdbus-codegen generated code
- From: "Jasper St. Pierre" <jstpierre mecheye net>
- To: John Emmas <john creativepost co uk>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: Memory leak in gdbus-codegen generated code
- Date: Tue, 10 Feb 2015 08:37:57 -0800
I don't see *how* we can clean it up. We could register an atexit handler which tears down everybody's classes, but then we're just doing work for no reason: the OS will clean up our memory in any case.
The issue seems to be "I'm using valgrind and it mentions a lot of 'possibly lost' data." In which case, we should probably improve this output -- perhaps keep more references around or use valgrind macros so it doesn't confuse it that much.
In the meantime, you can use a valgrind suppressions file. I thought we had a maintained one in glib, but I can't find it right now, so I'll give you the generic one we use for the gjs test mechanism.
https://git.gnome.org/browse/gjs/tree/installed-tests/extra/gjs.supp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]