]> sigrok.org Git - pulseview.git/commitdiff
Fix #705 by preventing the use of invalid instances
authorSoeren Apel <redacted>
Sun, 17 Apr 2016 13:28:51 +0000 (15:28 +0200)
committerSoeren Apel <redacted>
Sun, 17 Apr 2016 13:28:51 +0000 (15:28 +0200)
As QCache owns the object instances it manages, inserting
an object into the cache transfers ownership automatically.
This means we can't use an instance after it has been
inserted into the cache as this results in a double free
situation as we'd end up calling the destructor on the same
object instance as the cache.


No differences found