- 
    Bug 
- 
    Resolution: Done
- 
    P2: Important 
- 
    6.8.2
- 
    None
- 
    Linux
When the callback object from a Promise object is kept in C++ side like the slot for timeout in the example, and the callback object is invoked using QJSValue::call, the arguments might stay in memory and cause a memory leak.
STR:
- Run the example and click the window area. See if any "destroyed" shows up in the console.
- Without setting Qt::SingleShotConnection in the connection, the MemoryEater object passed to the callback object is not GC'd.