Invalidate the current location upon delete

This commit is contained in:
Pierre Pronchery 2020-09-26 08:28:12 +02:00
parent 3aaaea52e1
commit 5e71aa0002

View File

@ -671,6 +671,7 @@ static void _delete_plugins(Browser * browser);
void browser_delete(Browser * browser)
{
browser->current = NULL;
if(browser->source != 0)
g_source_remove(browser->source);
_delete_plugins(browser);