From 611f0cf65e9f1d80aba0314dfb926c6a0cf4cdfd Mon Sep 17 00:00:00 2001 From: "toshok%hungry.com" Date: Wed, 1 Dec 1999 21:16:25 +0000 Subject: [PATCH] actually free libPath after verifying that PR_GetLibraryPath really does copy the return value. git-svn-id: svn://10.0.0.236/trunk@54924 18797224-902f-48f8-a5cc-f745e15eee43 --- .../ef/Runtime/NativeMethods/NativeMethodDispatcher.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mozilla/ef/Runtime/NativeMethods/NativeMethodDispatcher.cpp b/mozilla/ef/Runtime/NativeMethods/NativeMethodDispatcher.cpp index cb3f5b3e414..d9c0d8c0569 100644 --- a/mozilla/ef/Runtime/NativeMethods/NativeMethodDispatcher.cpp +++ b/mozilla/ef/Runtime/NativeMethods/NativeMethodDispatcher.cpp @@ -187,12 +187,7 @@ PRLibrary *NativeMethodDispatcher::loadLibrary(const char *simpleLibName) //free(libName); } - /* XXX The NSPR doc says it's our responsibility to free this, but in - * reality PR_GetLibraryPath() returns a pointer to the actual path. - * So until they fix this or clarify how PR_GetLibraryPath() should - * behave, this line shall remain commented out -- Sriram, 8/12/97 - */ - /* if (libPath) PR_DELETE(libPath); */ + if (libPath) PR_DELETE(libPath); return lib; }