[PATCH] D14170: Fix false positive warning about memory leak for QApplication::postEvent

Evgeniy Dushistov via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 18 19:20:40 PST 2015


Dushistov marked an inline comment as done.
Dushistov added a comment.

> Should the leak be reported when the object is passed to QApplication::postEvent?


No, QApplication::postEvent == QCoreApplication::postEvent, it is just the same function,
because of QApplication inherit from QCoreApplication, and not introduce it's own postEvent.

> In this test, 'event' escapes during one of these calls and the rest of the calls are not tested/make no >difference.


fixed


http://reviews.llvm.org/D14170





More information about the cfe-commits mailing list