From: Diederik van Lierop Date: Sat, 20 Feb 2010 22:24:05 +0000 (+0100) Subject: Fix a memory leak in the object-snapper X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c792713464b65a0d8d3479c4f2d4a40a921c68a6;p=inkscape.git Fix a memory leak in the object-snapper --- diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp index 671cb66a4..7d79a5e91 100644 --- a/src/object-snapper.cpp +++ b/src/object-snapper.cpp @@ -720,7 +720,7 @@ bool Inkscape::ObjectSnapper::GuidesMightSnap() const // almost the same as This void Inkscape::ObjectSnapper::_clear_paths() const { for (std::vector::const_iterator k = _paths_to_snap_to->begin(); k != _paths_to_snap_to->end(); k++) { - g_free(k->path_vector); + delete k->path_vector; } _paths_to_snap_to->clear(); }