diff options
author | Giovanni panozzo <giovanni@panozzo.it> | 2022-02-10 14:22:34 +0300 |
---|---|---|
committer | Giovanni panozzo <giovanni@panozzo.it> | 2022-02-10 14:22:34 +0300 |
commit | 2609548e59b1032caa6d7b2592988d6022c3a720 (patch) | |
tree | 0fbf2b688530568183e59cc7eabd4a93731d1feb /src | |
parent | 735158e81b6d39bb5d40ceb431682a332f11c022 (diff) |
Fix rare crash
Diffstat (limited to 'src')
-rw-r--r-- | src/rcw.c | 1 | ||||
-rw-r--r-- | src/remmina_protocol_widget.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -3399,6 +3399,7 @@ void rco_closewin(RemminaProtocolWidget *gp) if (cnnobj) { cnnobj->remmina_file = NULL; g_free(cnnobj); + gp->cnnobj = NULL; } remmina_application_condexit(REMMINA_CONDEXIT_ONDISCONNECT); diff --git a/src/remmina_protocol_widget.c b/src/remmina_protocol_widget.c index 7a7fbc44b..307342009 100644 --- a/src/remmina_protocol_widget.c +++ b/src/remmina_protocol_widget.c @@ -1519,6 +1519,9 @@ static gboolean remmina_protocol_widget_dialog_mt_setup(gpointer user_data) RemminaMessagePanel *mp; const gchar *s; + if (d->gp->cnnobj == NULL) + return; + mp = remmina_message_panel_new(); if (d->dtype == RPWDT_AUTH) { |