diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2002-06-30 21:31:24 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2002-06-30 21:31:24 +0000 |
commit | 8a0ac60e92d36fc450334c8406888496be837e77 (patch) | |
tree | 5a7ab42582ff79af169cdea85a076c28190bfa90 | |
parent | 78b48faa7330e3e833e0b9c422d2c7d7a74661d1 (diff) | |
download | pkgsrc-8a0ac60e92d36fc450334c8406888496be837e77.tar.gz |
kmahjogg: fix one place where memory was read after it was freed; this
previously crashed with MALLOC_OPTIONS=J
-rw-r--r-- | games/kdegames2/distinfo | 3 | ||||
-rw-r--r-- | games/kdegames2/patches/patch-aa | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/games/kdegames2/distinfo b/games/kdegames2/distinfo index fe895706be8..c39ca3faee0 100644 --- a/games/kdegames2/distinfo +++ b/games/kdegames2/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.4 2001/12/03 15:37:16 skrll Exp $ +$NetBSD: distinfo,v 1.5 2002/06/30 21:31:24 jdolecek Exp $ SHA1 (kdegames-2.2.2.tar.bz2) = 7f569c59053854396e364c1448c9ec9ce6ef0ed6 Size (kdegames-2.2.2.tar.bz2) = 8828605 bytes +SHA1 (patch-aa) = e5c3c0927f29a3f57af70b6c1012dc830d7e806e diff --git a/games/kdegames2/patches/patch-aa b/games/kdegames2/patches/patch-aa new file mode 100644 index 00000000000..7b6dcf254e8 --- /dev/null +++ b/games/kdegames2/patches/patch-aa @@ -0,0 +1,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; + } |