[Qt] freeing hooks -> could caused sigsevs.
Den Jean
Den.Jean at telenet.be
Tue Sep 15 22:10:42 CEST 2009
Hi Zeljko,
I forgot to mention that I found
and fixed a bug (use of invalid pointer)
in qobject_hook.h
I left printfs in the code, so that you can
activate them and find out how
it affected your existing code:
virtual ~QObject_hook() {
if (handle) {
//printf("before calling potentially dangling pointer handle...\n");
handle->removeEventFilter(this);
//printf("after calling potentially dangling pointer handle.\n");
handle->disconnect(this);
handle = NULL;
} //else printf("avoided dangling pointer problem\n");
}
sorry for the bug :-)
Den Jean.
More information about the Qt
mailing list