gnome-init (gnome 1.x)
- From: jacob berkman <jacob ximian com>
- To: gnome-libs-devel gnome org
- Cc: jirka 5z com
- Subject: gnome-init (gnome 1.x)
- Date: 02 Jul 2001 16:01:48 -0400
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]