2005-11-23 [cleroy] 1.9.100cvs28

* src/mimeview.c
		Fix possible crash at exit. After the call to
		gtk_container_remove(), the Viewer's widget has no
		more parent so gtk+ automatically frees it and its
		sons. If destroy_viewer() then try to access it,
		problems ensue.
This commit is contained in:
Colin Leroy 2005-11-23 08:04:17 +00:00
parent a110401c2d
commit 3d2654524a
4 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2005-11-23 [cleroy] 1.9.100cvs28
* src/mimeview.c
Fix possible crash at exit. After the call to
gtk_container_remove(), the Viewer's widget has no
more parent so gtk+ automatically frees it and its
sons. If destroy_viewer() then try to access it,
problems ensue.
2005-11-22 [colin] 1.9.100cvs27
* src/compose.c

View file

@ -1011,3 +1011,4 @@
( cvs diff -u -r 1.60.2.38 -r 1.60.2.39 src/addressbook.c; cvs diff -u -r 1.382.2.194 -r 1.382.2.195 src/compose.c; cvs diff -u -r 1.9.2.30 -r 1.9.2.31 src/gtk/gtkaspell.c; cvs diff -u -r 1.5.2.3 -r 1.5.2.4 src/gtk/gtkaspell.h; ) > 1.9.100cvs25.patchset
( cvs diff -u -r 1.12.2.16 -r 1.12.2.17 src/prefs_template.c; ) > 1.9.100cvs26.patchset
( cvs diff -u -r 1.382.2.195 -r 1.382.2.196 src/compose.c; cvs diff -u -r 1.9.2.31 -r 1.9.2.32 src/gtk/gtkaspell.c; ) > 1.9.100cvs27.patchset
( cvs diff -u -r 1.83.2.51 -r 1.83.2.52 src/mimeview.c; ) > 1.9.100cvs28.patchset

View file

@ -11,7 +11,7 @@ MINOR_VERSION=9
MICRO_VERSION=100
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=27
EXTRA_VERSION=28
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=

View file

@ -382,8 +382,6 @@ void mimeview_destroy(MimeView *mimeview)
for (cur = mimeview->viewers; cur != NULL; cur = g_slist_next(cur)) {
MimeViewer *viewer = (MimeViewer *) cur->data;
gtk_container_remove(GTK_CONTAINER(mimeview->mime_notebook),
GTK_WIDGET(viewer->get_widget(viewer)));
viewer->destroy_viewer(viewer);
}
g_slist_free(mimeview->viewers);