Revert "Merge pull request #449 from vetrovosk/dropdown-memleak"

This reverts commit 243b975367fe047afd282aaaf095899d268aae52, reversing
changes made to 85cbf3896814463005b000ab12c2fc9e7686c931.