gtk_widget_create_pango_layout



Hello,

I am using gtk_widget_create_pango_layout to create a PangoLayout for using in gdk_draw_layout. I would like to know if the memory allocated by gtk_widget_create_pango_layout is automatically freed by GTK, or should I free it ?

I use this in an expose event callback, where I also use gdk_gc_new and gdk_pixmap_new among other functions, I use g_object_unref at the end of the callback function to free the memory allocated by the functions I enumerated above.

Is there a rule on what should be freed and what not ?




--
Claudiu Dragalina-Paraipan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]