]> granicus.if.org Git - graphviz/commitdiff
Fix bug 1324.
authorerg <devnull@localhost>
Tue, 25 Mar 2008 16:28:27 +0000 (16:28 +0000)
committererg <devnull@localhost>
Tue, 25 Mar 2008 16:28:27 +0000 (16:28 +0000)
lib/common/emit.c
lib/common/utils.c

index d0e0ddc116b3e8c1c233312390ff2515d4f752b6..e68908620a6259caaf5f8b7a8eac3fe5fbd4b6d0 100644 (file)
@@ -2528,10 +2528,12 @@ static int style_token(char **s, agxbuf * xb)
 static unsigned char outbuf[SMALLBUF];
 static agxbuf ps_xb;
 
+#if 0
 static void cleanup(void)
 {
     agxbfree(&ps_xb);
 }
+#endif
 
 /* parse_style:
  * This is one of the worse internal designs in graphviz.
@@ -2554,7 +2556,9 @@ char **parse_style(char *s)
 
     if (is_first) {
        agxbinit(&ps_xb, SMALLBUF, outbuf);
+#if 0
        atexit(cleanup);
+#endif
        is_first = FALSE;
     }
 
index 799edcc38bfc70c4179604faabf5b648ee0272bf..c7f8dc36382db23f2b436eec3f7ed7312490fca5 100644 (file)
@@ -248,11 +248,13 @@ edge_t *debug_getedge(graph_t * g, char *s0, char *s1)
 static unsigned char userbuf[SMALLBUF];
 static agxbuf xb;
 
+#if 0
 static void cleanup(void)
 {
     agxbfree(&xb);
 }
 #endif
+#endif
 
 char *gvUsername(void)
 {
@@ -262,7 +264,9 @@ char *gvUsername(void)
     struct passwd *p;
     if (first) {
        agxbinit(&xb, SMALLBUF, userbuf);
+#if 0
        atexit(cleanup);
+#endif
        first = 0;
     }
     p = (struct passwd *) getpwuid(getuid());