fix possible crash when handling DBus method call

fixes https://github.com/mate-desktop/mate-terminal/issues/85
master-1.22
monsta 2017-12-25 16:52:06 +03:00
parent 1f26d26568
commit 08bebc7780
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }