api_clear_error()

This commit is contained in:
Justin M. Keyes
2017-04-23 15:59:59 +02:00
parent 5c9860a0a2
commit 2a49163103
9 changed files with 48 additions and 47 deletions

View File

@@ -388,7 +388,7 @@ Boolean nvim_win_is_valid(Window window)
{
Error stub = ERROR_INIT;
Boolean ret = find_window_by_handle(window, &stub) != NULL;
xfree(stub.msg);
api_clear_error(&stub);
return ret;
}