aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-28 21:42:04 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-28 21:42:04 +0100
commit8ec2a45a3c8baf45fa75857d3587b21bcf5de78f (patch)
tree0a7f00e54fd42f51ebeff7158e66ccab6493f946 /dw
parent44a7a4b4286d987a8800cb0f72ee1c679aecd7d5 (diff)
don't mix strdup() and delete
Diffstat (limited to 'dw')
-rw-r--r--dw/style.cc2
-rw-r--r--dw/style.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/dw/style.cc b/dw/style.cc
index 8d36f510..be0cdeb4 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -269,7 +269,7 @@ int FontAttrs::hashValue()
Font::~Font ()
{
- delete name;
+ free (name);
}
void Font::copyAttrs (FontAttrs *attrs)
diff --git a/dw/style.hh b/dw/style.hh
index 9e6672bb..90544aaf 100644
--- a/dw/style.hh
+++ b/dw/style.hh
@@ -546,7 +546,7 @@ public:
class FontAttrs: public object::Object
{
public:
- const char *name;
+ char *name;
int size;
int weight;
FontStyle style;