openbsd-ports/www/firefox35/patches/patch-gfx_src_psshared_nsCUPSShim_cpp
dcoppa 729f3f4f79 Apply the cups fix to the rest of Mozilla apps (mozilla-thunderbird,
sunbird, firefox35, seamonkey).

Ok & tested by landry@
2011-01-05 08:22:30 +00:00

24 lines
631 B
Plaintext

$OpenBSD: patch-gfx_src_psshared_nsCUPSShim_cpp,v 1.2 2011/01/05 08:22:30 dcoppa Exp $
--- gfx/src/psshared/nsCUPSShim.cpp.orig Sun Dec 26 11:07:52 2010
+++ gfx/src/psshared/nsCUPSShim.cpp Sun Dec 26 11:08:25 2010
@@ -59,7 +59,7 @@ static const int gSymNameCt = sizeof(gSymName) / sizeo
PRBool
nsCUPSShim::Init()
{
- mCupsLib = PR_LoadLibrary("libcups.so.2");
+ mCupsLib = PR_LoadLibrary("libcups.so");
if (!mCupsLib)
return PR_FALSE;
@@ -87,10 +87,4 @@ nsCUPSShim::Init()
}
}
return PR_TRUE;
-}
-
-nsCUPSShim::~nsCUPSShim()
-{
- if (mCupsLib)
- PR_UnloadLibrary(mCupsLib);
}