fix possible crash when handling DBus method call
fixes https://github.com/mate-desktop/mate-terminal/issues/85
parent
29f820b54a
commit
324758a6b4
|
@ -185,10 +185,10 @@ method_call_cb (GDBusConnection *connection,
|
||||||
&error,
|
&error,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
options->initial_workspace = initial_workspace;
|
|
||||||
|
|
||||||
if (options != NULL)
|
if (options != NULL)
|
||||||
{
|
{
|
||||||
|
options->initial_workspace = initial_workspace;
|
||||||
|
|
||||||
terminal_app_handle_options (terminal_app_get (), options, FALSE /* no resume */, &error);
|
terminal_app_handle_options (terminal_app_get (), options, FALSE /* no resume */, &error);
|
||||||
terminal_options_free (options);
|
terminal_options_free (options);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue