diff options
Diffstat (limited to 'pidgin/plugins/gestures/stroke.c')
-rw-r--r-- | pidgin/plugins/gestures/stroke.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pidgin/plugins/gestures/stroke.c b/pidgin/plugins/gestures/stroke.c index 34ef020af3..aa29a04da4 100644 --- a/pidgin/plugins/gestures/stroke.c +++ b/pidgin/plugins/gestures/stroke.c @@ -22,13 +22,9 @@ void -_gstroke_init (struct gstroke_metrics *metrics) -{ - if (metrics->pointList != NULL) { - g_slist_free_full(metrics->pointList, g_free); - metrics->pointList = NULL; - metrics->point_count = 0; - } +_gstroke_init(struct gstroke_metrics *metrics) { + g_clear_slist(&metrics->pointList, g_free); + metrics->point_count = 0; } /* figure out which bin the point falls in */ |