summaryrefslogblamecommitdiff
path: root/www/elinks/files/patch-src::document::html::parser.c
blob: c90bd55328baa714fc11a54e9bb324567675b78a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                              
--- src/document/html/parser.c.orig	Sat Sep  6 02:09:37 2003
+++ src/document/html/parser.c	Sat Sep  6 02:10:14 2003
@@ -2330,8 +2330,8 @@
 	parse_frame_widths(d, y, HTML_FRAME_CHAR_HEIGHT, &fp.yw, &fp.y);
 	fp.parent = html_top.frameset;
 	if (fp.x && fp.y) html_top.frameset = special_f(ff, SP_FRAMESET, &fp);
-	mem_free(fp.xw);
-	mem_free(fp.yw);
+	if (fp.x) mem_free(fp.xw);
+	if (fp.y) mem_free(fp.yw);
 
 free_cd:
 	mem_free(c);