changeset 3455:8de4f34a1bd7

[gaim-migrate @ 3500] Thanks Chris Blizzard. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 27 Aug 2002 22:22:55 +0000
parents de42733886c1
children b48065e52337
files src/browser.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser.c	Tue Aug 27 22:03:57 2002 +0000
+++ b/src/browser.c	Tue Aug 27 22:22:55 2002 +0000
@@ -582,20 +582,26 @@
 		pid = fork();
 
 		if (pid == 0) {
+			/* args will be allocated below but we don't bother
+			 * freeing it since we're just going to exec and
+			 * exit */
 			char **args;
 			char command[1024];
 
 			if (web_browser == BROWSER_OPERA) {
+				args = g_new(char *, 4);
 				args[0] = "opera";
 				args[1] = "-newwindow";
 				args[2] = url;
 				args[3] = NULL;
 			} else if (web_browser == BROWSER_KONQ) {
+				args = g_new(char *, 4);
 				args[0] = "kfmclient";
 				args[1] = "openURL";
 				args[2] = url;
 				args[3] = NULL;
 			} else if (web_browser == BROWSER_GALEON) {
+				args = g_new(char *, 4);
 				args[0] = "galeon";
 				if (misc_options & OPT_MISC_BROWSER_POPUP) {
 					args[1] = "-w";
@@ -606,6 +612,7 @@
 					args[2] = NULL;
 				}
 			} else if (web_browser == BROWSER_MOZILLA) {
+				args = g_new(char *, 4);
 				args[0] = "mozilla";
 				args[1] = url;
 				args[2] = NULL;