memory leak fixed
This commit is contained in:
parent
4f4816bb31
commit
2d6b7b3f46
@ -249,8 +249,16 @@ static void qskInvokeMetaCall(
|
||||
|
||||
if ( receiver.isNull() )
|
||||
{
|
||||
// object might have died in the meantime
|
||||
free( arguments );
|
||||
/*
|
||||
receiver might have died in the meantime.
|
||||
We create a dummy event, so that the arguments
|
||||
are freed by its destructor.
|
||||
*/
|
||||
|
||||
const MetaCallEvent cleanUpEvent(
|
||||
call, metaObject->d.static_metacall,
|
||||
offset, index, arguments, nullptr );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user