summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2014-03-25 00:15:25 +0000
committerMarkus Engel <markus.engel@tum.de>2014-03-25 00:15:25 +0000
commit07e3de19f564cb21064e712351318cb4fe55c9e4 (patch)
treea661ce6b1198c2eb9160f5e1311977a96170a7b2 /src/style.cpp
parentconfigure.ac: unfortunately our code is not ready for -Werror=switch yet (bre... (diff)
downloadinkscape-07e3de19f564cb21064e712351318cb4fe55c9e4.tar.gz
inkscape-07e3de19f564cb21064e712351318cb4fe55c9e4.zip
Replaced a free() with g_free().
(bzr r13208)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/style.cpp b/src/style.cpp
index c57cf6349..bc869b127 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -3677,7 +3677,7 @@ sp_style_read_itextdecoration(SPITextDecorationLine *line, SPITextDecorationStyl
int slen = str - hstr;
gchar *frag = g_strndup(hstr,slen+1); // only send one piece at a time, since keywords may be intermixed
sp_style_read_itextdecorationColor(color, frag);
- free(frag);
+ g_free(frag);
if(color->set)break;
if(*str == '\0')break;
hstr = str + 1;