summaryrefslogtreecommitdiff
path: root/src/clicktoflash.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-03-04 14:01:40 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-03-04 14:01:40 +0100
commit3d9eeaedd2124cd4548c3f718986f41d0172fe9a (patch)
tree839cf5b5caf721a4eca65bf68fde23a362e0423d /src/clicktoflash.cpp
parentWebPluginFactory. Cleaning code.. (diff)
downloadrekonq-3d9eeaedd2124cd4548c3f718986f41d0172fe9a.tar.xz
delete clicktoflash object just when detection doesn't fail.
This will save rekonq from crashes :)
Diffstat (limited to 'src/clicktoflash.cpp')
-rw-r--r--src/clicktoflash.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clicktoflash.cpp b/src/clicktoflash.cpp
index 64dff19d..24f8740e 100644
--- a/src/clicktoflash.cpp
+++ b/src/clicktoflash.cpp
@@ -114,14 +114,13 @@ void ClickToFlash::load()
QWebElement substitute = element.clone();
emit signalLoadClickToFlash(true);
element.replace(substitute);
+ deleteLater();
return;
}
}
frames += frame->childFrames();
}
-
- deleteLater();
}