GtkImage and GtkTextBuffer and memory



Hi,


first portion of code :

----


GtkWidget *widget = gtk_image_new_from_file(filename);

GtkTextChildAnchor *anchor =
gtk_text_buffer_create_child_anchor(buf,&istart);

GtkTextBuffer *buf = gtk_text_view_get_buffer( GTK_TEXT_VIEW(history) );

gtk_text_view_add_child_at_anchor( GTK_TEXT_VIEW(history), widget,
anchor);

gtk_widget_show( widget );

-----

Now. 

when i destroy parent widget window (because it is in window), memory
taken by "widget" (image) do not free, 
How should I free that memory ?


--
Marcin Krzyzanowski
www   : http://krzak.linux.net.pl
email : krzak linux net pl , krzak hakore com
IRC   : [krzyzak] @#linuxnews @#zdrowo_jebnieci



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