Teach Diagnostic::setClient() to free the existing, owned
commitae59719e5b12fd97cb2ea862d7faee764c017937
authorDouglas Gregor <doug.gregor@gmail.com>
Mon, 31 Jan 2011 22:04:05 +0000 (31 22:04 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Mon, 31 Jan 2011 22:04:05 +0000 (31 22:04 +0000)
tree9f120c36237ea7952616b01eb3f0dba564ea7b5c
parent61a459f45a02ce371073c83dfd90f4186b8c42cb
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