summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwennmach <wennmach@pkgsrc.org>2001-08-13 22:27:49 +0000
committerwennmach <wennmach@pkgsrc.org>2001-08-13 22:27:49 +0000
commitbfdd4f3994c3971cabb4bc0af969cdaf6cd49a08 (patch)
tree53e000b9371b397aa3e6f3fce5039d7754051af7
parent10dde181c3fa170cd45e42c10220484b7b647ad6 (diff)
downloadpkgsrc-bfdd4f3994c3971cabb4bc0af969cdaf6cd49a08.tar.gz
Do not call free(), since XDestroyImage() already frees image & data.
Noted by Christian Weisgerber <naddy@mips.inka.de> in private e-mail.
-rw-r--r--x11/xworld/distinfo3
-rw-r--r--x11/xworld/patches/patch-af15
2 files changed, 17 insertions, 1 deletions
diff --git a/x11/xworld/distinfo b/x11/xworld/distinfo
index 89ffc9f7c20..6821df69430 100644
--- a/x11/xworld/distinfo
+++ b/x11/xworld/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 11:08:02 skrll Exp $
+$NetBSD: distinfo,v 1.3 2001/08/13 22:27:49 wennmach Exp $
SHA1 (xworld-2.0.tar.gz) = 99217a8f0b63ef8685c5508fbbff4f5d7bb9b9a8
Size (xworld-2.0.tar.gz) = 113385 bytes
@@ -7,3 +7,4 @@ SHA1 (patch-ab) = 60d1591c3c155e9fbf6bac094b20cd6a6df73df0
SHA1 (patch-ac) = f008b4140f3f27be2c6a05a3ece2c74f0a3e2899
SHA1 (patch-ad) = d243d16ef9d79e82c817ae116b3a9b9cba71a1eb
SHA1 (patch-ae) = 5abdb1a4a6133fee1f5d3a83625a41c27e07c912
+SHA1 (patch-af) = cf41e600032bea1c3b2cbd5436160b412fad7010
diff --git a/x11/xworld/patches/patch-af b/x11/xworld/patches/patch-af
new file mode 100644
index 00000000000..378fa66736b
--- /dev/null
+++ b/x11/xworld/patches/patch-af
@@ -0,0 +1,15 @@
+$NetBSD: patch-af,v 1.1 2001/08/13 22:27:50 wennmach Exp $
+
+XDestroyImage() frees both the image structure and the data pointed to
+by the image structure.
+
+--- xworld.c.old Tue Aug 14 00:16:41 2001
++++ xworld.c Tue Aug 14 00:17:03 2001
+@@ -466,7 +466,6 @@
+ r1 = n/2;
+ r2 = size/2;
+ XDestroyImage(image);
+- free(Map);
+ image = XCreateImage(display, visual, depth, format,
+ 0, 0, size, size, bitmap_pad, 0);
+ if (image == NULL) {