summaryrefslogtreecommitdiff
path: root/www/flashplugin-mozilla/files/patch-plugin.c
blob: a77f089cc89e0314f784bdf929222c61804fb5b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
*** plugin.c.old	Mon Jun 12 10:24:09 2000
--- plugin.c	Mon Sep 30 00:48:40 2002
***************
*** 193,198 ****
--- 193,207 ----
  			XSync(This->dpy,False);
  			XFreePixmap(This->dpy, This->canvas);
  			shmdt(This->segInfo.shmaddr);
+ #ifndef linux
+ 			{
+ 				struct shmid_ds buf;
+ 
+ 			if (shmctl(This->segInfo.shmid, IPC_RMID, &buf) < 0) {
+ 				perror("shmctl");
+ 				}
+ 			}
+ #endif
  
  			FlashClose(This->fh);
  			This->fh = 0;