gnome-init (gnome 1.x)



george,

i think you can free this memory here.

i might be wrong, but i don't get the currupted app name with --help
with this patch.

jacob
--
Index: gnome-init.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/Attic/gnome-init.c,v
retrieving revision 1.100.4.12
diff -u -r1.100.4.12 gnome-init.c
--- gnome-init.c	2001/06/25 09:12:37	1.100.4.12
+++ gnome-init.c	2001/07/02 19:59:33
@@ -423,7 +423,7 @@
 			   poptContext *return_ctx)
 {
 	poptContext ctx;
-	char *appdesc;
+	char *appdesc = NULL;
 
 #ifdef ALLOC_DEBUGGING_HOOKS
 	appdesc = malloc(10);
@@ -459,7 +459,8 @@
 	}
 	
 	ctx = gnomelib_parse_args(argc, argv, flags);
-	
+        g_free (appdesc);
+
 	if(return_ctx)
 		*return_ctx = ctx;
 	else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]