Code

from Johan - fixes a memory leak
authorscislac <scislac@users.sourceforge.net>
Mon, 8 Jan 2007 18:07:40 +0000 (18:07 +0000)
committerscislac <scislac@users.sourceforge.net>
Mon, 8 Jan 2007 18:07:40 +0000 (18:07 +0000)
src/gradient-drag.cpp

index 3c3563d8d78a6b4394e6e8fd3dbdd11a2d181a00..e09bedeee68cb46d88540acc12553fd59fadef1d 100644 (file)
@@ -466,6 +466,7 @@ gr_knot_moved_handler(SPKnot *knot, NR::Point const *ppointer, guint state, gpoi
             if (snap_vector) {
                 snap_vectors = g_slist_prepend (snap_vectors, snap_vector);
             }
+                       g_slist_free(snap_vectors);
         }
 
         // Move by the smallest of snap vectors: