Do not leak interfaces during hit testing (QDA::childAt())
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Tue, 3 Jan 2012 12:15:18 +0000 (13:15 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Jan 2012 12:46:26 +0000 (13:46 +0100)
Change-Id: Iebbc1cbbdce57bff6423fa417eac8dbdfe35e510
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>

src/plugins/accessible/shared/qdeclarativeaccessible.cpp

index abe73f2..4f79a7c 100644 (file)
@@ -86,6 +86,7 @@ QAccessibleInterface *QDeclarativeAccessible::childAt(int x, int y) const
             if (childIface->rect().contains(x, y))
                 return childIface;
         }
+        delete childIface;
     }
     return 0;
 }