Hi, I'm using the mozEmbed GtkWidget in a "tab" browser (using the GtkNoteBook widget). I can add tabs (using gtk_notebook_append_page) and remove tabs (using gtk_notebook_remove_page). My problem is that after adding and deleting tabs for awhile I get a segfault in nsGtkEventHandler.cpp. The event is a GDK_EXPOSE. The address of the window (event.any.window) in nsGtkEventHandler.cpp is the the same address as one of the mozEmebed->window that was deleted (removed) quite awhile back (I had added and deleted several tabs after deleting this particular window).
So, it looks like I'm not cleaning up correctly when deleting (removing) a tab. What do I need to do to mozEmbed to make sure he is destroyed? I am doing a gtk_widget_destroy (mozEmbed) right now. Any ideas why handle_gdk_event in nsGtkEventHandler.cpp would get sent a window that has been destroyed, and who would pass the bad window? I am using gtk_notebook_set_page () to change between tabs. Thanks, Andreas. PS. I am using Mozilla 1.0.0.
