diff options
| author | Peter Penz <[email protected]> | 2011-12-06 19:28:39 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-06 19:30:21 +0100 |
| commit | 0c314917a5a498666817bb4c803736756f11ae2e (patch) | |
| tree | 70a2a3ec374a6036dd6708484e1567672a8c1ccb /src | |
| parent | 8998ee8f5163d20a204f2bba8bc240c9bd700be7 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/search/searchpanel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
