diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-07-20 05:27:55 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-07-20 05:27:55 +0000 |
| commit | 02d104385bc03c0019a145d65241a22f2f23d253 (patch) | |
| tree | b81cb1ebc203ffebd46f65e68abbc2aa72381a3f /src/io/ftos.cpp | |
| parent | Remove deprecated Glib symbols (diff) | |
| download | inkscape-02d104385bc03c0019a145d65241a22f2f23d253.tar.gz inkscape-02d104385bc03c0019a145d65241a22f2f23d253.zip | |
memory leak fix
(bzr r10481)
Diffstat (limited to 'src/io/ftos.cpp')
| -rw-r--r-- | src/io/ftos.cpp | 2 |
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; } |
