Commit 504b1400 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Clipboard.c: use SAFE_free

parent 4421f787
...@@ -1783,8 +1783,7 @@ int nxagentInitClipboard(WindowPtr pWin) ...@@ -1783,8 +1783,7 @@ int nxagentInitClipboard(WindowPtr pWin)
fprintf(stderr, "%s: Got called.\n", __func__); fprintf(stderr, "%s: Got called.\n", __func__);
#endif #endif
free(lastSelectionOwner); SAFE_free(lastSelectionOwner);
lastSelectionOwner = NULL;
lastSelectionOwner = (SelectionOwner *) malloc(nxagentMaxSelections * sizeof(SelectionOwner)); lastSelectionOwner = (SelectionOwner *) malloc(nxagentMaxSelections * sizeof(SelectionOwner));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment