don't free TVector glue that wasn't allocated on Intel Macs. Patch by Eric Albert. b=313347 r=mento sr=smfr

git-svn-id: svn://10.0.0.236/trunk@184174 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
joshmoz%gmail.com
2005-11-05 02:25:32 +00:00
parent 85ce21bff5
commit f0136cd3e8

View File

@@ -487,7 +487,7 @@ ns4xPlugin::ns4xPlugin(NPPluginFuncs* callbacks, PRLibrary* aLibrary,
ns4xPlugin::~ns4xPlugin(void)
{
//reset the callbacks list
#if defined(XP_MACOSX)
#if defined(XP_MACOSX) && defined(__POWERPC__)
// release all wrapped plugin entry points.
if (fCallbacks.newp)
free((void *)fCallbacks.newp);
@@ -845,7 +845,7 @@ ns4xPlugin::Shutdown(void)
NPP_PLUGIN_LOG(PLUGIN_LOG_BASIC,
("NPP Shutdown to be called: this=%p\n", this));
if (nsnull != fShutdownEntry) {
if (fShutdownEntry != nsnull) {
#if defined(XP_MACOSX)
CallNPP_ShutdownProc(fShutdownEntry);
::CloseResFile(fPluginRefNum);
@@ -853,7 +853,7 @@ ns4xPlugin::Shutdown(void)
NS_TRY_SAFE_CALL_VOID(fShutdownEntry(), fLibrary, nsnull);
#endif
#if defined(XP_MACOSX)
#if defined(XP_MACOSX) && defined(__POWERPC__)
// release the wrapped plugin function.
free((void *)fShutdownEntry);
#endif