]> granicus.if.org Git - clang/commit
[analyzer] Fix false warning about memory leak for QApplication::postEvent
authorAnna Zaks <ganna@apple.com>
Wed, 6 Jan 2016 00:32:56 +0000 (00:32 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 6 Jan 2016 00:32:56 +0000 (00:32 +0000)
commit72f508c0d8d4d033d7e09aaa192333a0b3c9137b
tree68a158e69e728a9bdda850cd585d38d0fca62d27
parent7594f317602670684384bc6358608f549ac2b72f
[analyzer] Fix false warning about memory leak for QApplication::postEvent

According to Qt documentation Qt takes care of memory allocated for QEvent:
http://doc.qt.io/qt-4.8/qcoreapplication.html#postEvent

A patch by Evgeniy Dushistov!

Differential Revision: http://reviews.llvm.org/D14170

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256887 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/MallocChecker.cpp
test/Analysis/Inputs/qt-simulator.h [new file with mode: 0644]
test/Analysis/qt_malloc.cpp [new file with mode: 0644]