diff options
-rw-r--r-- | recordmydesktop/src/recordmydesktop.c | 6 |
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){ |