[maemo-developers] sapwood big

From: Li, Frank frank.li at intel.com
Date: Tue Aug 7 09:03:06 EEST 2007

	I found a problem at draw_shadow function of sapwood-draw.c
	gtk_clist_expose will call gtk_draw_shadow (); Then
gtk_draw_shadow will call style->draw_shadow, which is point to
draw_shadow function of sapwood-draw. 
 	This will pass widget = NULL to draw_shadow function.  At
draw_simple_image function, line 249: widget->parent. Segment fault will
happen because widget is zero at that time. 
	I suggest add 
		g_return_if_fail(widget != NULL) at begin of draw_shadow

Best regards
Frank Li

More information about the maemo-developers mailing list