From c00534e9fda6177d2a6a0663a4536743ff9b665c Mon Sep 17 00:00:00 2001 From: Jan-Arve Saether Date: Tue, 3 Jan 2012 13:15:18 +0100 Subject: Do not leak interfaces during hit testing (QDA::childAt()) Change-Id: Iebbc1cbbdce57bff6423fa417eac8dbdfe35e510 Reviewed-by: Frederik Gladhorn --- src/plugins/accessible/shared/qdeclarativeaccessible.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins') diff --git a/src/plugins/accessible/shared/qdeclarativeaccessible.cpp b/src/plugins/accessible/shared/qdeclarativeaccessible.cpp index abe73f24ea..4f79a7cb2a 100644 --- a/src/plugins/accessible/shared/qdeclarativeaccessible.cpp +++ b/src/plugins/accessible/shared/qdeclarativeaccessible.cpp @@ -86,6 +86,7 @@ QAccessibleInterface *QDeclarativeAccessible::childAt(int x, int y) const if (childIface->rect().contains(x, y)) return childIface; } + delete childIface; } return 0; } -- cgit v1.2.3