Database optimizations.

This commit is contained in:
Jordan Petridis
2017-10-23 10:47:54 +03:00
parent 9beea21a4f
commit 0e5d976514
6 changed files with 58 additions and 36 deletions
+5
View File
@@ -75,6 +75,8 @@ pub fn populate_podcasts_flowbox(
stack.remove(&old);
stack.add_named(&pdw, "pdw");
stack.set_visible_child(&pdw);
// aggresive memory cleanup
// probably not needed
old.destroy();
println!("Hello World!, child activated");
}));
@@ -167,5 +169,8 @@ pub fn update_podcasts_view(db: &Arc<Mutex<SqliteConnection>>, stack: &gtk::Stac
stack.add_named(&grid, "pd_grid");
// preserve the visible widget
stack.set_visible_child_name(&vis);
// aggresive memory cleanup
// probably not needed
old.destroy();
}