From 8090bd4a30aa3845a5a7bdc378feadb8f6de3256 Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Sat, 14 Jan 2012 21:42:00 +0000 Subject: [PATCH] Add a TODO about a possible use after free bug. --- src/servers/notification/AppGroupView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/servers/notification/AppGroupView.cpp b/src/servers/notification/AppGroupView.cpp index e1f36da458..444e4061d0 100644 --- a/src/servers/notification/AppGroupView.cpp +++ b/src/servers/notification/AppGroupView.cpp @@ -238,6 +238,9 @@ AppGroupView::AddInfo(NotificationView* view) for (int32 i = 0; i < children; i++) { if (id == fInfo[i]->MessageID()) { + // TODO: because NotificationWindow also tracks these + // views, we may be heading towards a use-after-free with + // this code. GetLayout()->RemoveView(fInfo[i]); delete fInfo[i];