[PATCH] D14170: Fix false positive warning about memory leak for QApplication::postEvent
Anna Zaks via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 18 18:47:01 PST 2015
zaks.anna added inline comments.
================
Comment at: test/Analysis/qt_malloc.cpp:11
@@ +10,3 @@
+ QCoreApplication::postEvent(obj, event);
+ QApplication::postEvent(obj, event);
+}
----------------
Should the leak be reported when the object is passed to QApplication::postEvent?
In this test, 'event' escapes during one of these calls and the rest of the calls are not tested/make no difference. If you want to test that 'event' escapes when each of them is called, you'd need to test each of them with a different object.
http://reviews.llvm.org/D14170
More information about the cfe-commits
mailing list