fix memory leak in search widget
Merge branch '#147/fix-memory-leak-in-search-widget' into develop