mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Fix double-free in X selection code.
[originally from svn r4367]
This commit is contained in:
parent
c8e789d806
commit
3b647115a5
@ -1424,7 +1424,10 @@ void write_clip(void *frontend, wchar_t * data, int len, int must_deselect)
|
||||
memcpy(inst->pasteout_data_ctext, tp.value, tp.nitems);
|
||||
inst->pasteout_data_ctext_len = tp.nitems;
|
||||
XFree(tp.value);
|
||||
}
|
||||
} else {
|
||||
inst->pasteout_data_ctext = NULL;
|
||||
inst->pasteout_data_ctext_len = 0;
|
||||
}
|
||||
} else {
|
||||
inst->pasteout_data_utf8 = NULL;
|
||||
inst->pasteout_data_utf8_len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user