diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-09-30 20:17:57 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-09-30 20:17:57 +0000 |
| commit | db2034fd3ccc754361e563410e590e1002d1f592 (patch) | |
| tree | 5d2a3bcda06d3461f9bc80346159a05d53f2c4b9 /src | |
| parent | fix obvious leak (diff) | |
| download | inkscape-db2034fd3ccc754361e563410e590e1002d1f592.tar.gz inkscape-db2034fd3ccc754361e563410e590e1002d1f592.zip | |
fix another g_strdup memleak
(bzr r12635)
Diffstat (limited to 'src')
| -rw-r--r-- | src/text-chemistry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text-chemistry.cpp b/src/text-chemistry.cpp index 8a3fede0f..5bcdfdd33 100644 --- a/src/text-chemistry.cpp +++ b/src/text-chemistry.cpp @@ -234,9 +234,9 @@ text_remove_all_kerns_recursively(SPObject *o) gchar **xa_space = g_strsplit(x, " ", 0); gchar **xa_comma = g_strsplit(x, ",", 0); if (xa_space && *xa_space && *(xa_space + 1)) { - o->getRepr()->setAttribute("x", g_strdup(*xa_space)); + o->getRepr()->setAttribute("x", *xa_space); } else if (xa_comma && *xa_comma && *(xa_comma + 1)) { - o->getRepr()->setAttribute("x", g_strdup(*xa_comma)); + o->getRepr()->setAttribute("x", *xa_comma); } g_strfreev(xa_space); g_strfreev(xa_comma); |
