--- a/pidgin/plugins/gestures/stroke.c Wed Oct 02 17:08:45 2019 -0400 +++ b/pidgin/plugins/gestures/stroke.c Wed Oct 02 17:58:38 2019 -0400 @@ -239,7 +239,7 @@ if (((gint) iy) > metrics->max_y) metrics->max_y = (gint) iy; metrics->point_count++; - new_point_p = malloc(sizeof(struct s_point)); + new_point_p = g_malloc(sizeof(struct s_point)); } } else { /* same thing, but for dely larger than delx case... */ ix = LAST_POINT->x; @@ -263,7 +263,7 @@ if (((gint) iy) > metrics->max_y) metrics->max_y = (gint) iy; metrics->point_count++; - new_point_p = malloc(sizeof(struct s_point)); + new_point_p = g_malloc(sizeof(struct s_point)); } }