Re: signal_connect bad name leak



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]