From 30cb5a972345fae8a88fe3be989aa0a24ec1ee7d Mon Sep 17 00:00:00 2001 From: GMT 1999 Andy Thomas Date: Tue, 30 Nov 1999 21:33:12 +0000 Subject: [PATCH] app/info_window.c Tue Nov 30 21:23:39 GMT 1999 Andy Thomas * app/info_window.c Fix crash where display closed & info dialog had not been used. Yasuhiro SHIRASAKI pointed this problem out. Thanks. --- ChangeLog | 7 +++++++ app/dialogs/info-window.c | 3 +++ app/gui/info-window.c | 3 +++ app/info_window.c | 3 +++ 4 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index b56035f407..a9a3afdf64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Nov 30 21:23:39 GMT 1999 Andy Thomas + + * app/info_window.c + + Fix crash where display closed & info dialog had not been used. + Yasuhiro SHIRASAKI pointed this problem out. Thanks. + Mon Nov 29 18:17:34 PST 1999 Manish Singh * configure.in: support for optional gap_decode_mpeg plugin diff --git a/app/dialogs/info-window.c b/app/dialogs/info-window.c index 63acbfe6d0..b1806bc032 100644 --- a/app/dialogs/info-window.c +++ b/app/dialogs/info-window.c @@ -526,6 +526,9 @@ info_window_free (InfoDialog *info_win) return; } + if(!info_win) + return; + iwd = (InfoWinData *) info_win->user_data; gtk_signal_disconnect_by_data (GTK_OBJECT (iwd->gdisp->gimage), info_win); diff --git a/app/gui/info-window.c b/app/gui/info-window.c index 63acbfe6d0..b1806bc032 100644 --- a/app/gui/info-window.c +++ b/app/gui/info-window.c @@ -526,6 +526,9 @@ info_window_free (InfoDialog *info_win) return; } + if(!info_win) + return; + iwd = (InfoWinData *) info_win->user_data; gtk_signal_disconnect_by_data (GTK_OBJECT (iwd->gdisp->gimage), info_win); diff --git a/app/info_window.c b/app/info_window.c index 63acbfe6d0..b1806bc032 100644 --- a/app/info_window.c +++ b/app/info_window.c @@ -526,6 +526,9 @@ info_window_free (InfoDialog *info_win) return; } + if(!info_win) + return; + iwd = (InfoWinData *) info_win->user_data; gtk_signal_disconnect_by_data (GTK_OBJECT (iwd->gdisp->gimage), info_win);