1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Add missing g_application_hold on Duplicate Session.

The omission of this call caused a GTK assertion failure when the
GApplication's use count went negative after two releases and only one
hold.
This commit is contained in:
Simon Tatham 2017-12-17 20:18:20 +00:00
parent 1af9c425ba
commit 1ed2f98c89

View File

@ -156,6 +156,7 @@ void launch_duplicate_session(Conf *conf)
{
extern const int dup_check_launchable;
assert(!dup_check_launchable || conf_launchable(conf));
g_application_hold(G_APPLICATION(app));
new_session_window(conf_copy(conf), NULL);
}