Users of targets may well want the atoms anyway.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@49811
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
for (i = 2; i < size; i++)
sel->targets[i - 2] = XGetAtomName(_ecore_x_disp, targets[i]);
- free(data);
ECORE_X_SELECTION_DATA(sel)->free = _ecore_x_selection_data_targets_free;
ECORE_X_SELECTION_DATA(sel)->content = ECORE_X_SELECTION_CONTENT_TARGETS;
ECORE_X_SELECTION_DATA(sel)->length = size;
+ ECORE_X_SELECTION_DATA(sel)->data = data;
return sel;
}
XFree(sel->targets[i]);
free(sel->targets);
}
+ free(ECORE_X_SELECTION_DATA(sel)->data);
free(sel);
return 1;
}