summaryrefslogtreecommitdiffstats
path: root/src/io/ftos.cpp
diff options
context:
space:
mode:
authorAndrew Higginson <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
committerAndrew <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
commit80960b623a99aae1402ab651b2974ef544ed3b03 (patch)
treeba49d42c2789e9e11f805e2d5263e10f9fedeef8 /src/io/ftos.cpp
parenttry to fix bug (diff)
parentGDL: Cherry-pick upstream patch 73852 (2011-03-23) - Add missing return value. (diff)
downloadinkscape-80960b623a99aae1402ab651b2974ef544ed3b03.tar.gz
inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.zip
merged with trunk so I can build again...
(bzr r10092.1.36)
Diffstat (limited to 'src/io/ftos.cpp')
-rw-r--r--src/io/ftos.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/io/ftos.cpp b/src/io/ftos.cpp
index 47f0dc232..b8d161ca4 100644
--- a/src/io/ftos.cpp
+++ b/src/io/ftos.cpp
@@ -320,6 +320,7 @@ string ftos(double val, char mode, int sigfig, int precision, int options)
break;
default:
+ g_free(p);
return "**bad mode**";
}
@@ -413,6 +414,7 @@ string ftos(double val, char mode, int sigfig, int precision, int options)
fprintf(stderr, "*** End of ftos with ascii = ", ascii.c_str());
#endif
/* finally, we can return */
+ g_free(p);
return ascii;
}