diff simpletv.c @ 6:f0cbbe964629

XShmDetach() both cases.
author darius
date Tue, 28 Jun 2005 13:14:03 +0000
parents 8b6b46a1261d
children 210d197c77f9
line wrap: on
line diff
--- a/simpletv.c	Tue Jun 28 13:12:39 2005 +0000
+++ b/simpletv.c	Tue Jun 28 13:14:03 2005 +0000
@@ -480,8 +480,8 @@
 
 void
 X_Shutdown() {
+	XShmDetach(disp, &shminfo);
 #ifdef USE_XVIMAGES
-	XShmDetach(disp, &shminfo);
 	shmctl(shminfo.shmid, IPC_RMID, 0);
 	shmdt(shminfo.shmaddr);
 	XFree(yuv_image);