[gaim-migrate @ 3500]

Tue, 27 Aug 2002 22:22:55 +0000

author
Chris Blizzard
date
Tue, 27 Aug 2002 22:22:55 +0000
changeset 3455
e4735a477ba0
parent 3454
5433897c3968
child 3456
915542b9877e

[gaim-migrate @ 3500]
Thanks Chris Blizzard.

committer: Sean Egan <seanegan@pidgin.im>

src/browser.c file | annotate | diff | comparison | revisions
--- 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;

mercurial