Fixed WIN_SendDestroyMsg.

diff --git a/windows/win.c b/windows/win.c
index 529bb6d..bf6e4de 100644
--- a/windows/win.c
+++ b/windows/win.c
@@ -1195,15 +1195,13 @@
        */
       while (nKidCount>0)
       {
-	pChild = WIN_FindWndPtr(pWndArray[nKidCount]);
+	pChild = WIN_FindWndPtr(pWndArray[--nKidCount]);
 
 	if (pChild!=NULL)
 	{
 	  WIN_SendDestroyMsg( pChild );
 	  WIN_ReleaseWndPtr(pChild);	  
 	}
-       
-	nKidCount--;
       }
 
       /*