summaryrefslogtreecommitdiff
path: root/games/kdegames2/patches/patch-aa
blob: 7b6dcf254e8c9a5209cac60950c7345f9a3875e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$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;
 }