]> granicus.if.org Git - clang/commit
Teach Diagnostic::setClient() to free the existing, owned
authorDouglas Gregor <dgregor@apple.com>
Mon, 31 Jan 2011 22:04:05 +0000 (22:04 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 31 Jan 2011 22:04:05 +0000 (22:04 +0000)
commit4f5e21e24fb9e6ec473a13f83b5c9a2c41501a70
tree9f120c36237ea7952616b01eb3f0dba564ea7b5c
parentc7a9cda0eb24762a3e9c892b1f4bdc6deb5de0a6
Teach Diagnostic::setClient() to free the existing, owned
client. Fixes a libclang leak.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124614 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h
lib/Basic/Diagnostic.cpp
tools/c-index-test/c-index-test.c