As seen in
the second argument of
QApplication::postEvent ( QObject * receiver, QEvent *
that is the event argument, has to be on the heap, as
it will be freed by Qt. However, in iaxc_callback(),
the wrapperEvent is also new-ed, but never freed.
The following patch seems to correct this (and it
solves the memory leak I've been getting, and as far as
I can see, I still get the same functionality).
--- tmp/kiax-0.8.4/src/iaxwrapper.cpp 2005-04-11
+++ cvs1/kiax-0.8.4/src/iaxwrapper.cpp 2005-06-06
@@ -477,6 +477,7 @@
IaxWrapperEvent * wev = (IaxWrapperEvent
iaxc_event e = wev->iaxClientEvent;