pidgin/plugins/gestures/stroke.c

changeset 39916
6a79856cb8f5
parent 37427
b7ca07c50ef1
child 39918
1c8e11f9274f
--- 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));
 	}
       }
 

mercurial