Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!gilroy.pa.dec.com!klee From: klee@gilroy.pa.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Free data from XGetWindowProperty Message-ID: <1513@bacchus.dec.com> Date: 20 Jun 89 16:55:27 GMT References: <216500009@s.cs.uiuc.edu> <3174@ncsuvx.ncsu.edu> Sender: news@decwrl.dec.com Lines: 16 In article <216500009@s.cs.uiuc.edu>, carroll@s.cs.uiuc.edu writes: > Also, on a related topic, XLoadQueryFont() returns a structure that > should be freed. Can I use XFree on it? The manual (11.3) says to use > XFreeFontInfo(), No, the manual says "To unload the font and free the storage used by the font structure that was allocated by XQueryFont or XLoadQueryFont, use XFreeFont." XFree frees memory on only the client (Xlib) side, but you don't want to do that since a font is allocated in both the client and the server. XFreeFontInfo frees an information array generated by XListFontsWithInfo. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@decwrl.dec.com Uucp: uunet!decwrl!klee