Fix some resource leaks
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 19 Feb 2011 23:03:19 +0000 (00:03 +0100)
committerArun Persaud <apersaud@lbl.gov>
Sat, 19 Feb 2011 23:43:22 +0000 (15:43 -0800)
commit4d4d6305b409a21e22162ca25175aa6d60dc8916
tree554b16933e5bbdf1d28394637806cf150dfcc72f
parent855210360788a4b5ff475fdea1f7e6c423b328c3
Fix some resource leaks

Some files were opened not closed in XBoard, when loading XIM images
(which I doubt anyone ever does) but also when copying the clipboard
(which has the potential of being done very often). There was also some
code that would not work if conditional code which is permanently
disabled would be enabled.
xboard.c