$NetBSD: patch-aa,v 1.3 2002/06/30 21:31:26 jdolecek Exp $

--- kmahjongg/HighScore.cpp.orig	Sun Jun 30 23:21:56 2002
+++ kmahjongg/HighScore.cpp	Sun Jun 30 23:22:09 2002
@@ -183,12 +183,14 @@
 	
 HighScore::~HighScore()
 {
-	TableInstance *t;
+	TableInstance *t, *tn;
 
 	if (tables != NULL) {
-		for (t = tables; t != NULL; t=t->next)
+		for (t = tables; t != NULL; t = tn) {
+			tn = t->next;
 			if (t != NULL)
 				delete t;
+		}
 	}
 	tables = NULL;
 }
