diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-11-10 21:35:56 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-11-10 21:35:56 +0000 |
| commit | f1e16df7e90c74dbbe87a9c3a447ba1f929ae488 (patch) | |
| tree | a39b9a30a4f1678a7c0667c4f0b9561e9bda27d0 /src/sp-filter.cpp | |
| parent | adding blending support (diff) | |
| parent | Add a extra info page pointed by suv in bug page (diff) | |
| download | inkscape-f1e16df7e90c74dbbe87a9c3a447ba1f929ae488.tar.gz inkscape-f1e16df7e90c74dbbe87a9c3a447ba1f929ae488.zip | |
update to trunk
(bzr r13682.1.2)
Diffstat (limited to 'src/sp-filter.cpp')
| -rw-r--r-- | src/sp-filter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp index 9a184952c..9cb33a6f3 100644 --- a/src/sp-filter.cpp +++ b/src/sp-filter.cpp @@ -465,6 +465,10 @@ int sp_filter_set_image_name(SPFilter *filter, gchar const *name) { pair<gchar*,int> new_pair(name_copy, value); pair<map<gchar*,int,ltstr>::iterator,bool> ret = filter->_image_name->insert(new_pair); if (ret.second == false) { + // The element is not inserted (because an element with the same key was already in the map) + // Therefore, free the memory allocated for the new entry: + free(name_copy); + return (*ret.first).second; } return value; |
