From 35b9f7426841fae882b94d518fd526d5a29713d3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 15 Aug 2024 00:25:31 +0300 Subject: [PATCH] set nullptr after delete --- src/app/browser/main/tab/data/navbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/browser/main/tab/data/navbar.cpp b/src/app/browser/main/tab/data/navbar.cpp index 2283e9f8..9f516723 100644 --- a/src/app/browser/main/tab/data/navbar.cpp +++ b/src/app/browser/main/tab/data/navbar.cpp @@ -103,7 +103,7 @@ void Navbar::refresh() && !url->path.empty() ); - delete url; + delete url; url = nullptr; // Toggle update button sensibility update->set_sensitive(