From cce87c5890a486f72e1481322e2a26a05fb26179 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 28 Sep 2003 16:01:42 +0000 Subject: [project @ 2003-09-28 16:01:42 by jmb] Fix freeze when accessing about page svn path=/import/netsurf/; revision=326 --- riscos/about.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'riscos') diff --git a/riscos/about.c b/riscos/about.c index 0ee1bac1f..d9b59df8d 100644 --- a/riscos/about.c +++ b/riscos/about.c @@ -154,11 +154,9 @@ void about_create(void) { /* count files which match .About* */ sprintf(buf, "%s.About*", val); xosfscontrol_count(buf,0,0,0,0,0,0,&nofiles); - xfree(buf); for (j=0; j!=nofiles; j++) { /* get plugin details */ - buf = xcalloc(strlen(val) + 20, sizeof(char)); if (j == 0) { sprintf(buf, "%s.About", val); } @@ -200,7 +198,6 @@ void about_create(void) { LOG(("furl: %s", furl)); abt->plugd = new_plugin(abt->plugd, furl); xfree(pdetails); - xfree(buf); continue; } else { @@ -229,12 +226,12 @@ void about_create(void) { sprintf(fname, "file://%s", furl); xfree(furl); + LOG(("furl: %s", fname)); furl = xcalloc(strlen(paboutpl3) + strlen(ptype) + strlen(fname) + strlen(pdetails) + 10, sizeof(char)); sprintf(furl, paboutpl3, ptype, fname, ptype, w, h, pdetails); abt->plugd = new_plugin(abt->plugd, furl); xfree(fname); xfree(pdetails); - xfree(buf); continue; } } @@ -252,7 +249,6 @@ void about_create(void) { abt->plugd = new_plugin(abt->plugd, furl); xfree(fname); xfree(pdetails); - xfree(buf); } } if (buf != 0) { -- cgit v1.2.3