Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2002 08:10:03 -0700 (PDT)
From:      Leland Wang <llwang@infor.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/43498: flashplugin-mozilla does not release SHM
Message-ID:  <200210051510.g95FA3DE097574@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/43498; it has been noted by GNATS.

From: Leland Wang <llwang@infor.org>
To: freebsd-gnats-submit@FreeBSD.org, wolfgang@lyxys.ka.sub.org
Cc:  
Subject: Re: ports/43498: flashplugin-mozilla does not release SHM
Date: Sat, 5 Oct 2002 23:05:44 +0800

 The patch looks reasonable. The line number is, however, incorrect, which
 made me a patch.core. I attach the following corrected patch. Some
 committer please commit it.
 
 diff -urN flashplugin-mozilla.orig/Makefile flashplugin-mozilla/Makefile
 --- flashplugin-mozilla.orig/Makefile	Sat Oct  5 21:49:31 2002
 +++ flashplugin-mozilla/Makefile	Sat Oct  5 21:49:38 2002
 @@ -7,7 +7,7 @@
  
  PORTNAME?=	flashplugin-mozilla
  PORTVERSION=	0.4.10
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	www
  MASTER_SITES=	http://www.swift-tools.com/Flash/
  DISTNAME=	flash-${PORTVERSION}
 diff -urN flashplugin-mozilla.orig/files/patch-plugin.c flashplugin-mozilla/files/patch-plugin.c
 --- flashplugin-mozilla.orig/files/patch-plugin.c	Thu Jan  1 08:00:00 1970
 +++ flashplugin-mozilla/files/patch-plugin.c	Sat Oct  5 22:41:52 2002
 @@ -0,0 +1,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;
 
 -- 
  /-------\      /-\     /--------\
  \--\ /--/      | |     \--\ /---/
     | |    /----/ \----\/--/ \---\
   /-/ \-\  \----/ /----/\--\ /---/
   \-\ /-/      /  \     /--/ \---\
     | |       / /\ \    \--\ /---/ /\
 /---/ \---\/-/ /  \ \---\  | \----/ |
 \---------/\--/    \----/  \--------/
 e-mail addr: b7506054@csie.ntu.edu.tw

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210051510.g95FA3DE097574>