summaryrefslogtreecommitdiff
path: root/recordmydesktop/src
diff options
context:
space:
mode:
authorbiocrasher <biocrasher@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-07-14 20:06:03 +0000
committerbiocrasher <biocrasher@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-07-14 20:06:03 +0000
commit221e7f94f8cef8e0e758406b700741456ea1cb97 (patch)
tree2fc48fcc7f6df7c5be75f1261ed028fecbdc343d /recordmydesktop/src
parente7935c60715063df13b8cf62ff137d587b2c74d5 (diff)
shmem cleanup
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@10 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r--recordmydesktop/src/recordmydesktop.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/recordmydesktop/src/recordmydesktop.c b/recordmydesktop/src/recordmydesktop.c
index f0f1a3d..e438f7f 100644
--- a/recordmydesktop/src/recordmydesktop.c
+++ b/recordmydesktop/src/recordmydesktop.c
@@ -181,6 +181,12 @@ int main(int argc,char **argv){
if(!pdata.args.full_shots)
pthread_join(poll_damage_t,NULL);
fprintf(stderr,".");
+ if(!(pdata.args.noshared)){
+ XShmDetach (pdata.dpy, &shminfo);
+// XDestroyImage (pdata.image);
+ shmdt (&shminfo.shmaddr);
+ shmctl (shminfo.shmid, IPC_RMID, 0);
+ }
fprintf(stderr,"\n");
XCloseDisplay(pdata.dpy);
if(Aborted){
© All Rights Reserved