summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-01-03 23:34:16 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-01-03 23:34:16 +0900
commit30954661009ddfb9db2e9daed3bfbd594bb20441 (patch)
tree3313fab5818f875ae69b1387627c1f55b707ef38
parent7ec95b95226aa01c050dfc383833ef107bc95c60 (diff)
downloadpytqt-30954661009ddfb9db2e9daed3bfbd594bb20441.tar.gz
pytqt-30954661009ddfb9db2e9daed3bfbd594bb20441.zip
Fixed SEGV caused by commit 6be04664 when creating universal slots.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--sip/qt/qobject.sip2
1 files changed, 1 insertions, 1 deletions
diff --git a/sip/qt/qobject.sip b/sip/qt/qobject.sip
index fcc1d89..df82e56 100644
--- a/sip/qt/qobject.sip
+++ b/sip/qt/qobject.sip
@@ -1414,7 +1414,7 @@ static void *sipTQtCreateUniversalSlot(sipWrapper *tx, const char *sig,
pyqt3SlotConnection conn;
/* Initialise the connection. */
- if (sipGetAddress(&tx->super) == NULL)
+ if (tx && sipGetAddress(&tx->super) == NULL)
{
conn.sc_transmitter = 0;
}