fix memory leak in Query widget when refresh rate is set
Merge branch '#146/fix-memory-leak-in-query-widget' into develop