comparison simpletv.c @ 6:f0cbbe964629

XShmDetach() both cases.
author darius
date Tue, 28 Jun 2005 13:14:03 +0000
parents 8b6b46a1261d
children 210d197c77f9
comparison
equal deleted inserted replaced
5:8b6b46a1261d 6:f0cbbe964629
478 478
479 /*--------------------------------------------------------------------------*/ 479 /*--------------------------------------------------------------------------*/
480 480
481 void 481 void
482 X_Shutdown() { 482 X_Shutdown() {
483 XShmDetach(disp, &shminfo);
483 #ifdef USE_XVIMAGES 484 #ifdef USE_XVIMAGES
484 XShmDetach(disp, &shminfo);
485 shmctl(shminfo.shmid, IPC_RMID, 0); 485 shmctl(shminfo.shmid, IPC_RMID, 0);
486 shmdt(shminfo.shmaddr); 486 shmdt(shminfo.shmaddr);
487 XFree(yuv_image); 487 XFree(yuv_image);
488 #else 488 #else
489 XDestroyImage(rgb_image); 489 XDestroyImage(rgb_image);