Client memory leak with XCopyArea() call?
Owen Taylor
otaylor at redhat.com
Fri Apr 8 10:35:11 PDT 2005
On Fri, 2005-04-08 at 17:17 +0000, Ryan B. Lynch wrote:
> I'm pretty new to Xlib programming, and I'm observing a behavior that
> seems like a memory leak. I'm using x11 6.7.0, right now, compiled from
> source on CRUX Linux.
>
> First, I create a window.
>
> Then, in a while(1) loop, I:
> - call XCreatePixmap() to instantiate a new pixmap,
> - draw some stuff on the pixmap,
> - call XCopyArea to copy the pixmap contents to the window,
> - call XFreePixmap to destroy the pixmap.
Most likely your XCopyArea calls are creating GraphicsExpose events
(the default GC values have them on) and you aren't processing events,
so the events accumulate in the event queue.
Regards,
Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20050408/799a113b/attachment.pgp>
More information about the xorg
mailing list