Skip to content

Commit

Permalink
Update rdp_plugin.c
Browse files Browse the repository at this point in the history
  • Loading branch information
giox069 committed Oct 17, 2014
1 parent 10e60e6 commit c21e728
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions remmina-plugins/rdp/rdp_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@ static gboolean remmina_rdp_close_connection(RemminaProtocolWidget* gp)
if (instance->context->channels)
freerdp_channels_close(instance->context->channels, instance);
freerdp_disconnect(instance);
rfi->connected = False;
}
}

Expand All @@ -1001,8 +1002,6 @@ static gboolean remmina_rdp_close_connection(RemminaProtocolWidget* gp)
/* Remove instance->context from gp object data to avoid double free */
g_object_steal_data(G_OBJECT(gp), "plugin-data");



if (instance->context->channels) {
freerdp_channels_free(instance->context->channels);
instance->context->channels = NULL;
Expand Down

0 comments on commit c21e728

Please sign in to comment.