Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiovanni panozzo <giovanni@panozzo.it>2022-02-10 14:22:34 +0300
committerGiovanni panozzo <giovanni@panozzo.it>2022-02-10 14:22:34 +0300
commit2609548e59b1032caa6d7b2592988d6022c3a720 (patch)
tree0fbf2b688530568183e59cc7eabd4a93731d1feb /src
parent735158e81b6d39bb5d40ceb431682a332f11c022 (diff)
Fix rare crash
Diffstat (limited to 'src')
-rw-r--r--src/rcw.c1
-rw-r--r--src/remmina_protocol_widget.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/rcw.c b/src/rcw.c
index 0c3e591b0..b750a16cb 100644
--- a/src/rcw.c
+++ b/src/rcw.c
@@ -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) {