Add safety check when freeing dnd handler.

SVN revision: 73010
This commit is contained in:
Leif Middelschulte 2012-06-28 13:47:45 +00:00
parent 04acb74d8b
commit b3011b6f45
1 changed files with 3 additions and 0 deletions

View File

@ -408,6 +408,9 @@ e_drop_handler_del(E_Drop_Handler *handler)
{
unsigned int i;
if (!handler)
return;
_drop_handlers = eina_list_remove(_drop_handlers, handler);
for (i = 0; i < handler->num_types; i++)
eina_stringshare_del(handler->types[i]);