(-dealloc): Free the shared memory pixmap (if one was allocated).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16267 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-03-25 23:26:35 +00:00
parent b502b5346e
commit 5ce6055a5c
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2003-03-26 00:24 Alexander Malmberg <alexander@malmberg.org>
* Source/x11/XWindowBuffer.m (-dealloc): Free the shared memory
pixmap (if one was allocated).
* Source/art/composite.m: When checking whether the overlap handling
should be used, compare windows, not gstates.
2003-03-22 Willem Rein Oudshoorn <woudshoo@xs4all.nl>
* Source/x11/XGServerWindow.m ([XGServer -orderwindow:::]):

View file

@ -511,6 +511,13 @@ static int warn = 0;
if (ximage)
{
if (pixmap)
{
XFreePixmap(display,pixmap);
XSetWindowBackground(display,window->ident,None);
pixmap=0;
}
if (use_shm)
{
XShmDetach(display, &shminfo);