1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/games/xmine/files/patch-ad
Joerg Wunsch 18895d9ba7 Don't XawAsciiSourceFreeString() the value previously obtained with
a XawDialogGetValueString(); this is apparently no longer permissible
(the docs say it gets automatically freed by XawDialogGetValueString()).

PR:		ports/12490

While i was at it, i also added WM_DELETE_WINDOW hooks so all the
toplevels can be deleted by usual window manager actions.
2000-02-19 20:56:14 +00:00

19 lines
400 B
Plaintext

--- xmine.c.orig Sat Feb 19 20:50:19 2000
+++ xmine.c Sat Feb 19 21:00:46 2000
@@ -1407,7 +1407,6 @@
str = XawDialogGetValueString(w);
if (!str) return;
if (atoi(str)) *val = atoi(str);
- XawAsciiSourceFreeString(w);
}
/* ARGSUSED */
@@ -1688,7 +1687,6 @@
sc->times[level] = timer;
write_scores(sc);
}
- if (str) XawAsciiSourceFreeString(pane);
best_times(NULL, NULL, NULL);
}