summaryrefslogtreecommitdiff
path: root/x11/xworld/patches
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 /x11/xworld/patches
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.
Diffstat (limited to 'x11/xworld/patches')
-rw-r--r--x11/xworld/patches/patch-af15
1 files changed, 15 insertions, 0 deletions
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) {