Code

Fix a memory leak in the object-snapper
authorDiederik van Lierop <mailat-signdiedenrezidotnl>
Sat, 20 Feb 2010 22:24:05 +0000 (23:24 +0100)
committerDiederik van Lierop <mailat-signdiedenrezidotnl>
Sat, 20 Feb 2010 22:24:05 +0000 (23:24 +0100)
src/object-snapper.cpp

index 671cb66a458871b791f61531ac15791631b9b480..7d79a5e91a7aa0686dd66cf8694604aad3acb154 100644 (file)
@@ -720,7 +720,7 @@ bool Inkscape::ObjectSnapper::GuidesMightSnap() const // almost the same as This
 void Inkscape::ObjectSnapper::_clear_paths() const
 {
     for (std::vector<Inkscape::SnapCandidatePath >::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();
 }