Add safety check when freeing dnd handler.
authorLeif Middelschulte <leif.middelschulte@gmail.com>
Thu, 28 Jun 2012 13:47:45 +0000 (13:47 +0000)
committerLeif Middelschulte <leif.middelschulte@gmail.com>
Thu, 28 Jun 2012 13:47:45 +0000 (13:47 +0000)
SVN revision: 73010

src/bin/e_dnd.c

index 5267ffb..986e731 100644 (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]);