cleanup memory usage, add stringshare, fix bug.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Thu, 19 Mar 2009 00:14:57 +0000 (00:14 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Thu, 19 Mar 2009 00:14:57 +0000 (00:14 +0000)
commit00e98a4851beb9d3d48426b64b7b4b659694e802
tree46af666d505333b61a239cf8fa74560dcce6f99a
parent375f695e8fab58a3f43c01d8b5cf5d976ba51168
cleanup memory usage, add stringshare, fix bug.

 * h->active_type was referring to xdnd->type, that could be freed
   already. Now it's a reference to that string.

 * strcmp() are now direct pointer comparison since strings are shared.

 * no more extra "types" allocated member, make it a variable array at
   the end of the structure.

SVN revision: 39564
src/bin/e_dnd.c
src/bin/e_dnd.h