GTK--: Gtk_Notebook::append_page question



Hi,

I want to add some pages to a notebook. I am using something like this:

    frame0.set_usize( 200, 200 );
    frame0.border_width( SPACING );
    notebook.append_page( &frame0,new Gtk_Label("a page"));
    frame0.show();

My question is this:

Will the memory allocated for the label by dealocated corectly when the
notebook or notebook page is deleted ? Will this kind of declaration
("new Gtk_Label("a page")")  produce memory leaks ?

TIA,

Ionutz



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