aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-20 17:53:35 +0000
committerChris Lattner <sabre@nondot.org>2009-02-20 17:53:35 +0000
commit4a323d94e50c8f570cbfaf0392e68215b8ca87bf (patch)
treeee9e51f1c19f244ce97b883ea335fe0ae1dae65c /lib/AST/DeclObjC.cpp
parent54fefbe9931284c8b78e4cb1cd5f13038f480b9f (diff)
remove a dead list.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r--lib/AST/DeclObjC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index 1651df9141..5b59af9d95 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -106,8 +106,7 @@ ObjCProtocolDecl *ObjCProtocolDecl::Create(ASTContext &C, DeclContext *DC,
}
void ObjCProtocolDecl::Destroy(ASTContext &C) {
- delete [] PropertyDecl;
- PropertyDecl = 0;
+ ReferencedProtocols.clear();
ObjCContainerDecl::Destroy(C);
}