signal_connect bad name leak



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?)

Attachment: foo.pl
Description: Text Data

Attachment: signal-bad-name.diff
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]