Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Unified Diff: third_party/libxslt/libxslt/templates.c

Issue 10919019: Fix dictionary string usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libxslt/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libxslt/libxslt/templates.c
===================================================================
--- third_party/libxslt/libxslt/templates.c (revision 153534)
+++ third_party/libxslt/libxslt/templates.c (working copy)
@@ -18,6 +18,7 @@
#include <libxml/globals.h>
#include <libxml/xmlerror.h>
#include <libxml/tree.h>
+#include <libxml/dict.h>
#include <libxml/xpathInternals.h>
#include <libxml/parserInternals.h>
#include "xslt.h"
@@ -572,7 +573,8 @@
}
} else if ((ctxt->internalized) && (target != NULL) &&
(target->doc != NULL) &&
- (target->doc->dict == ctxt->dict)) {
+ (target->doc->dict == ctxt->dict) &&
+ xmlDictOwns(ctxt->dict, value)) {
text->content = (xmlChar *) value;
} else {
text->content = xmlStrdup(value);
@@ -757,7 +759,8 @@
}
} else if ((ctxt->internalized) &&
(target->doc != NULL) &&
- (target->doc->dict == ctxt->dict))
+ (target->doc->dict == ctxt->dict) &&
+ xmlDictOwns(ctxt->dict, value))
{
text->content = (xmlChar *) value;
} else {
« no previous file with comments | « third_party/libxslt/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698