pidgin/plugins/gestures/stroke.c

changeset 40497
2f45a03838e9
parent 39918
1c8e11f9274f
child 40669
48dfed6f4f1f
--- a/pidgin/plugins/gestures/stroke.c	Thu Jul 23 20:13:47 2020 -0500
+++ b/pidgin/plugins/gestures/stroke.c	Fri Jul 24 04:43:46 2020 -0500
@@ -147,11 +147,11 @@
 	prev_bin = current_bin;
       }
 
-      /* move to next point, freeing current point from list */
-
-      free (crt_elem->data);
-      crt_elem = g_slist_next (crt_elem);
+		/* move to next point, freeing current point from list */
+		g_free(crt_elem->data);
+		crt_elem = g_slist_next(crt_elem);
     }
+	metrics->pointList = NULL;
   /* add the last run of points to the sequence */
   sequence[sequence_count++] = '0' + current_bin;
   /*  printf ("DEBUG:: adding final sequence: %d\n", current_bin);  */

mercurial