Fixing dropview bugs and memory leaks.