summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-10-16 20:21:27 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-10-16 20:21:27 +0000
commitf304ed29d6f2b92b872ffc2b218bc8398b879ef0 (patch)
treece3de4b6e387d4c8f7a4e3d15a3c1ce6af749f37 /src/xml
parentcouple of typos affecting Path->Linked Offset (Bug 1236830) (diff)
downloadinkscape-f304ed29d6f2b92b872ffc2b218bc8398b879ef0.tar.gz
inkscape-f304ed29d6f2b92b872ffc2b218bc8398b879ef0.zip
cppcheck initialisation
(bzr r12697)
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/repr-io.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp
index f7e75a83b..54eff00bc 100644
--- a/src/xml/repr-io.cpp
+++ b/src/xml/repr-io.cpp
@@ -78,11 +78,14 @@ public:
XmlSource()
: filename(0),
encoding(0),
- fp(0),
+ fp(NULL),
firstFewLen(0),
+ LoadEntities(false),
+ cachedData(),
+ cachedPos(0),
dummy("x"),
- instr(0),
- gzin(0)
+ instr(NULL),
+ gzin(NULL)
{
for (int k=0;k<4;k++)
{
@@ -191,7 +194,7 @@ int XmlSource::setFile(char const *filename, bool load_entities=false)
buffer[len] = 0;
this->cachedData += buffer;
}
- free(buffer);
+ delete[] buffer;
// Check for SYSTEM or PUBLIC entities and remove them from the cache
GMatchInfo *info;