Re: signal_connect bad name leak
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: signal_connect bad name leak
- Date: Sun, 01 Mar 2009 18:26:59 +0100
Kevin Ryde wrote:
Giving a bad signal name to signal_connect() seems to leak some memory.
Eg. core used by foo.pl below grows forever.
I know leaks on error conditions aren't a priority, but this one is easy
to notice. I get some joy from inserting a g_closure_unref per below.
(That's the right way to discard a GClosure which still has a floating
ref, is it?)
Looks good to me. Committed. Thanks!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]