comparison src/os_unix.c @ 18838:8dabdfc7c799 v8.1.2406

patch 8.1.2406: leaking memory in test_paste and test_registers Commit: https://github.com/vim/vim/commit/6b649ac4fd0cbf88c5a05d82ad151d0ce980916a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 7 17:47:22 2019 +0100 patch 8.1.2406: leaking memory in test_paste and test_registers Problem: Leaking memory in test_paste and test_registers. Solution: Free the old title. Don't copy expr_line.
author Bram Moolenaar <Bram@vim.org>
date Sat, 07 Dec 2019 18:00:03 +0100
parents 44b855153d8e
children 1fe99999625c
comparison
equal deleted inserted replaced
18837:00e789ecc516 18838:8dabdfc7c799
1961 if (status && text_prop.value != NULL) 1961 if (status && text_prop.value != NULL)
1962 { 1962 {
1963 retval = TRUE; 1963 retval = TRUE;
1964 if (!test_only) 1964 if (!test_only)
1965 { 1965 {
1966 if (get_title)
1967 vim_free(oldtitle);
1968 else
1969 vim_free(oldicon);
1966 if (text_prop.encoding == XA_STRING && !has_mbyte) 1970 if (text_prop.encoding == XA_STRING && !has_mbyte)
1967 { 1971 {
1968 if (get_title) 1972 if (get_title)
1969 oldtitle = vim_strsave((char_u *)text_prop.value); 1973 oldtitle = vim_strsave((char_u *)text_prop.value);
1970 else 1974 else