X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/073e9f42f40b00c570bacb92c54cd7b83b13fa31..798a50bf16c5c2b5c304643a77851d41088f5c16:/windows/winstore.c?ds=sidebyside diff --git a/windows/winstore.c b/windows/winstore.c index 00049b74..aae5a4c6 100644 --- a/windows/winstore.c +++ b/windows/winstore.c @@ -699,8 +699,8 @@ static int transform_jumplist_registry ret = RegSetValueEx(pjumplist_key, reg_jumplist_value, 0, REG_MULTI_SZ, new_value, piterator_new - new_value); + sfree(old_value); old_value = new_value; - sfree(new_value); } else ret = ERROR_SUCCESS; @@ -780,6 +780,12 @@ void cleanup_all(void) access_random_seed(DEL); /* ------------------------------------------------------------ + * Ask Windows to delete any jump list information associated + * with this installation of PuTTY. + */ + clear_jumplist(); + + /* ------------------------------------------------------------ * Destroy all registry information associated with PuTTY. */