From: Peter Penz Date: Tue, 6 Dec 2011 18:28:39 +0000 (+0100) Subject: Fix possible crash in SearchPanel::urlChanged() X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0c314917a5a498666817bb4c803736756f11ae2e Fix possible crash in SearchPanel::urlChanged() m_lastSetUrlStatJob gets a dangling pointer if we don't have a Nepomuk URL. Thanks to Frank Reininghaus for the analysis and the hint! BUG: 287075 FIXED-IN: 4.8.0 --- diff --git a/src/panels/search/searchpanel.cpp b/src/panels/search/searchpanel.cpp index dd0ad9be4..a78828e0d 100644 --- a/src/panels/search/searchpanel.cpp +++ b/src/panels/search/searchpanel.cpp @@ -95,6 +95,7 @@ bool SearchPanel::urlChanged() } delete m_lastSetUrlStatJob; + m_lastSetUrlStatJob = 0; if (isNepomukUrl) { // Reset the current query and disable the facet-widget until