mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Prevent complaining about leaking clipboard
This commit is contained in:
parent
0c40ff05c9
commit
a637349b32
@ -379,8 +379,9 @@ set_clipboard_text(unsigned char *data)
|
|||||||
if (str.source) done_string(&str);
|
if (str.source) done_string(&str);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clipboard) mem_free(clipboard);
|
/* Shouldn't complain about leaks. */
|
||||||
clipboard = stracpy(data);
|
if (clipboard) free(clipboard);
|
||||||
|
clipboard = strdup(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set xterm-like term window's title. */
|
/* Set xterm-like term window's title. */
|
||||||
|
Loading…
Reference in New Issue
Block a user