diff plugins/ssl/ssl-nss.c @ 10519:bec9130b24d2

[gaim-migrate @ 11833] Leak fixes, round #2. And some minor MSN tweaks suggested by Felipe. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 17 Jan 2005 00:33:30 +0000
parents 1668fcab5968
children 50224ac8184d
line wrap: on
line diff
--- a/plugins/ssl/ssl-nss.c	Sat Jan 15 16:53:55 2005 +0000
+++ b/plugins/ssl/ssl-nss.c	Mon Jan 17 00:33:30 2005 +0000
@@ -57,18 +57,18 @@
 static void
 ssl_nss_init_nss(void)
 {
+	char *lib;
 	PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);
 	NSS_NoDB_Init(NULL);
 
 	/* TODO: Fix this so autoconf does the work trying to find this lib. */
-	SECMOD_AddNewModule("Builtins",
 #ifndef _WIN32
-                            g_strdup(BR_LIBDIR("/libnssckbi.so")),
-			    /* this might leak, and looks wrong in general */
+	lib = g_strdup(BR_LIBDIR("/libnssckbi.so"));
 #else
-                            "nssckbi.dll",
+	lib = g_strdup("nssckbi.dll");
 #endif
-                            0, 0);
+	SECMOD_AddNewModule("Builtins", lib, 0, 0);
+	g_free(lib);
 	NSS_SetDomesticPolicy();
 
 	_identity = PR_GetUniqueIdentity("Gaim");