diff --git a/tests/auto/controls/data/tst_spinbox.qml b/tests/auto/controls/data/tst_spinbox.qml
index b22b5a0c9e53a02311cff04dda20cf2cab42b105..f74386c94d7553c00ef7040951b962d244ede964 100644
--- a/tests/auto/controls/data/tst_spinbox.qml
+++ b/tests/auto/controls/data/tst_spinbox.qml
@@ -157,6 +157,7 @@ Item {
                 keyClick(data.input[i])
 
             compare(spinbox.value, data.value)
+            spinbox.destroy()
         }
 
         function test_increment_mouse() {