Issue with g_list_free on Mac OSX

2011-05-11 Thread Alden Peterson
Hello everyone, I am converting a working C project from Windows/Linux to Mac using GTK. I have successfully compiled and can run the project but get runtime errors whenever I call the g_list_free method - the debugger gives the following error malloc: *** error for object 0x1140e1180: pointer be

GdkEvent question (is it a bug?)

2011-05-11 Thread James Tappin
While working on a script to convert the GdkEvent structures to Fortran derived types for the GtkFortran project I came across the following struct _GdkEventClient { GdkEventType type; GdkWindow *window; gint8 send_event; GdkAtom message_type; gushort data_format; union { char b[20

Re: memory leak in PangoLayout?

2011-05-11 Thread Olivier Sessink
On 05/06/2011 09:28 AM, Olivier Sessink wrote: Hi all, valgrind reports a memory leak in the following code: gint widget_get_string_size(GtkWidget * widget, gchar * string) { PangoLayout *layout; gint retval = -1; layout = gtk_widget_create_pango_layout(widget, string); if (layout != NULL) { pa