# HG changeset patch # User Paul Aurich # Date 1251583460 0 # Node ID b9a54fa6add2d980ed870fb32039db229060ef5f # Parent 49308951822a4ba0c52241f1bc64d0b44da48f8f GSList internally doesn't use the same allocator as gmalloc. Refs #400. In particular, GSList in newer versions of GLib uses the slice allocator, which is probably where this crash is coming from. diff -r 49308951822a -r b9a54fa6add2 pidgin/plugins/gestures/stroke.c --- a/pidgin/plugins/gestures/stroke.c Sat Aug 29 03:03:00 2009 +0000 +++ b/pidgin/plugins/gestures/stroke.c Sat Aug 29 22:04:20 2009 +0000 @@ -207,10 +207,7 @@ metrics->max_x = -1; metrics->max_y = -1; - metrics->pointList = (GSList*) g_malloc (sizeof (GSList)); - - metrics->pointList->data = new_point_p; - metrics->pointList->next = NULL; + metrics->pointList = g_slist_prepend(metrics->pointList, new_point_p); metrics->point_count = 0; } else {