Commit ea44dce8 authored by Ronan's avatar Ronan

fix(Object): delete slot object if necessary in connectInternal (error case)

parent 1da22151
......@@ -59,6 +59,7 @@ const Object::Lock &Object::getLock () const {
do { \
if (!PARAM) { \
lError() << "No " #PARAM " given!"; \
slotObject->call(Private::SlotObject::Delete, nullptr, nullptr); \
return Connection(); \
} \
} while (false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment