diff options
| author | buliabyak <> | 2013-09-28 18:49:01 +0000 |
|---|---|---|
| committer | buliabyak <> | 2013-09-28 18:49:01 +0000 |
| commit | bdcd0645191270e9136557237f7c48ca5944fc73 (patch) | |
| tree | d8c74513b622ef44259655cf30c61ee00d4e2b26 /src/sp-image.cpp | |
| parent | Fixed MeasureContext. (diff) | |
| download | inkscape-bdcd0645191270e9136557237f7c48ca5944fc73.tar.gz inkscape-bdcd0645191270e9136557237f7c48ca5944fc73.zip | |
fix one code path where fullname wasn't freed
(bzr r12614)
Diffstat (limited to 'src/sp-image.cpp')
| -rw-r--r-- | src/sp-image.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp-image.cpp b/src/sp-image.cpp index 05dfb5f48..f2fc6a37a 100644 --- a/src/sp-image.cpp +++ b/src/sp-image.cpp @@ -682,11 +682,12 @@ Inkscape::Pixbuf *sp_image_repr_read_image(gchar const *href, gchar const *absre // and if it fails, we also try to use bare href regardless of its g_path_is_absolute if (g_file_test (fullname, G_FILE_TEST_EXISTS) && !g_file_test (fullname, G_FILE_TEST_IS_DIR)) { inkpb = Inkscape::Pixbuf::create_from_file(fullname); - g_free (fullname); if (inkpb != NULL) { + g_free (fullname); return inkpb; } } + g_free (fullname); } /* try filename as absolute */ |
