Remove tab before creating a new one
This patch makes sure to remove the previous tab object before creating a new one to avoid memory leaks and also ensure a nice transition when opening new files.
This patch makes sure to remove the previous tab object before creating a new one to avoid memory leaks and also ensure a nice transition when opening new files.