Skip to content
Commit ed96e854 authored by Milian Wolff's avatar Milian Wolff
Browse files

Don't leak GeneratingEnumeratorCollection in test

Pass the pointers directly to let them be wrapped in job pointers,
instead of deref'ing them to create a shallow reference which will
leak the contents of the elements list.

Fixes:
```
Direct leak of 3648 byte(s) in 114 object(s) allocated from:
    #0 0x7fc23eee2002 in operator new(unsigned long) /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x5603a99f0712 in GeneratingEnumeratorCollection::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) /home/milian/projects/kde/src/frameworks/threadweaver/autot>

```
parent ff9006f6
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