Patrick Li 10b7fd2bf3 Add patch to remove SHM blocks when plugin is closed
PR:		ports/43498
Submitted by:	Wolfgang Zenker <wolfgang@lyxys.ka.sub.org>
Reviewed by:	maintainer
2002-11-23 02:51:53 +00:00

21 lines
447 B
C

*** 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;