summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2006-03-06 05:24:45 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2006-03-06 05:24:45 +0000
commitedb5b24dda888c7bf936aad805720a36075c8b87 (patch)
treefe8ff13abe96d5e1e5a94ce97ae18c3053ebc524
parente2dc5283538239510280ecc685e743105aecdab8 (diff)
downloadtigervnc-edb5b24dda888c7bf936aad805720a36075c8b87.tar.gz
tigervnc-edb5b24dda888c7bf936aad805720a36075c8b87.zip
Calling XShmDestroyReadDisplayBuf() on IrixOverlayShmImage cleanup.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@502 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--x0vncserver/Image.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/x0vncserver/Image.cxx b/x0vncserver/Image.cxx
index 475cee19..ef723789 100644
--- a/x0vncserver/Image.cxx
+++ b/x0vncserver/Image.cxx
@@ -361,7 +361,6 @@ void IrixOverlayShmImage::Init(int width, int height)
return;
// FIXME: Check if the extension is available at run time.
- // FIXME: Does XShmCreateReadDisplayBuf() require some cleanup?
readDisplayBuf = XShmCreateReadDisplayBuf(dpy, NULL, shminfo, width, height);
}
@@ -413,6 +412,9 @@ IrixOverlayShmImage::~IrixOverlayShmImage()
{
// DEBUG:
// fprintf(stderr,"~IrixOverlayShmImage called\n");
+
+ if (readDisplayBuf != NULL)
+ XShmDestroyReadDisplayBuf(readDisplayBuf);
}
void IrixOverlayShmImage::get(Window wnd, int x, int y)