Add a TODO about a possible use after free bug.

This commit is contained in:
Alex Wilson
2012-04-01 11:54:15 +12:00
parent 80f96f761c
commit 8090bd4a30
@@ -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];