From 221e7f94f8cef8e0e758406b700741456ea1cb97 Mon Sep 17 00:00:00 2001 From: biocrasher Date: Fri, 14 Jul 2006 20:06:03 +0000 Subject: shmem cleanup git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@10 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/recordmydesktop.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'recordmydesktop/src') 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){ -- cgit v1.2.3