diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-03-04 14:01:40 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-03-04 14:01:40 +0100 |
commit | 3d9eeaedd2124cd4548c3f718986f41d0172fe9a (patch) | |
tree | 839cf5b5caf721a4eca65bf68fde23a362e0423d | |
parent | WebPluginFactory. Cleaning code.. (diff) | |
download | rekonq-3d9eeaedd2124cd4548c3f718986f41d0172fe9a.tar.xz |
delete clicktoflash object just when detection doesn't fail.
This will save rekonq from crashes :)
-rw-r--r-- | src/clicktoflash.cpp | 3 |
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(); } |