summaryrefslogtreecommitdiff
path: root/render/box.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-06-06 02:08:56 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-06-06 02:08:56 +0000
commit5b83aebf36bcd77c79a15996421757fb0c5845ca (patch)
tree0a907e7088983a9e1098de2d14af8e9c947c4cd6 /render/box.c
parent435c39083e26c646e18fd097d417d667aebea8fe (diff)
downloadnetsurf-5b83aebf36bcd77c79a15996421757fb0c5845ca.tar.gz
netsurf-5b83aebf36bcd77c79a15996421757fb0c5845ca.tar.bz2
[project @ 2003-06-06 02:08:56 by jmb]
Progress plugin handling. Segfault appears to have gone. It doesn't draw the image though :/ svn path=/import/netsurf/; revision=168
Diffstat (limited to 'render/box.c')
-rw-r--r--render/box.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/render/box.c b/render/box.c
index def23e981..03282ea8e 100644
--- a/render/box.c
+++ b/render/box.c
@@ -1,5 +1,5 @@
/**
- * $Id: box.c,v 1.47 2003/05/31 19:01:43 jmb Exp $
+ * $Id: box.c,v 1.48 2003/06/06 02:08:56 jmb Exp $
*/
#include <assert.h>
@@ -1416,8 +1416,8 @@ struct box* box_object(xmlNode *n, struct content *content,
/* object data */
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "data"))) {
- po->data = s;
- url = url_join(s, content->url);
+ po->data = strdup(s);
+ url = url_join(strdup(s), content->url);
LOG(("object '%s'", url));
xmlFree(s);
}
@@ -1425,7 +1425,7 @@ struct box* box_object(xmlNode *n, struct content *content,
/* object type */
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "type"))) {
- po->type = s;
+ po->type = strdup(s);
LOG(("type: %s", po->type));
xmlFree(s);
}
@@ -1433,7 +1433,7 @@ struct box* box_object(xmlNode *n, struct content *content,
/* object codetype */
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "codetype"))) {
- po->codetype = s;
+ po->codetype = strdup(s);
LOG(("codetype: %s", po->codetype));
xmlFree(s);
}
@@ -1441,7 +1441,7 @@ struct box* box_object(xmlNode *n, struct content *content,
/* object codebase */
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "codebase"))) {
- po->codebase = s;
+ po->codebase = strdup(s);
LOG(("codebase: %s", po->codebase));
xmlFree(s);
}
@@ -1449,7 +1449,7 @@ struct box* box_object(xmlNode *n, struct content *content,
/* object classid */
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "classid"))) {
- po->classid = s;
+ po->classid = strdup(s);
LOG(("classid: %s", po->classid));
xmlFree(s);
}
@@ -1479,7 +1479,7 @@ struct box* box_object(xmlNode *n, struct content *content,
}
/* start fetch */
- plugin_fetch(content, url, box, po);
+ plugin_decode(content, url, box, po);
return box;
}
@@ -1505,8 +1505,8 @@ struct box* box_embed(xmlNode *n, struct content *content,
/* embed src */
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "src"))) {
- po->src = s;
- url = url_join(s, content->url);
+ po->src = strdup(s);
+ url = url_join(strdup(s), content->url);
LOG(("embed '%s'", url));
xmlFree(s);
}
@@ -1520,7 +1520,7 @@ struct box* box_embed(xmlNode *n, struct content *content,
}
/* start fetch */
- plugin_fetch(content, url, box, po);
+ plugin_decode(content, url, box, po);
return box;
}
@@ -1548,12 +1548,12 @@ struct box* box_applet(xmlNode *n, struct content *content,
if (!(s = (char *) xmlGetProp(n, (const xmlChar *) "data")))
return box;
- url = url_join(s, content->url);
+ url = url_join(strdup(s), content->url);
LOG(("object '%s'", url));
xmlFree(s);
/* start fetch */
- //plugin_fetch(content, url, box, po);
+ //plugin_decode(content, url, box, po);
return box;
}