From 8d757a6b6418ff22738329b6012b33cb0c670287 Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Sun, 20 Sep 1998 05:13:42 +0000 Subject: [PATCH] Fixed nettest to work with threaded netlib... --- network/module/tests/nettest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network/module/tests/nettest.cpp b/network/module/tests/nettest.cpp index 51d555b7b527..29d5763c5b9c 100644 --- a/network/module/tests/nettest.cpp +++ b/network/module/tests/nettest.cpp @@ -24,6 +24,7 @@ #endif #include "plstr.h" +#include "plevent.h" #include "nsIStreamListener.h" #include "nsIInputStream.h" @@ -221,6 +222,7 @@ int main(int argc, char **argv) return 0; } + PL_InitializeEventsLib(""); nsRepository::RegisterFactory(kNetServiceCID, NETLIB_DLL, PR_FALSE, PR_FALSE); bTraceEnabled = PR_FALSE; @@ -284,6 +286,7 @@ int main(int argc, char **argv) in = pURL->Open((PRInt32*)&result); ReadStreamSynchronously(in); + NS_IF_RELEASE(in); urlLoaded = 1; }