Index: src/plugin/PluginClass.cpp |
diff --git a/src/plugin/PluginClass.cpp b/src/plugin/PluginClass.cpp |
index 7424228c5471944032c2cb2dbe43b01dec97c403..b1f7ee6ab58e83748c8d2f6b77fbedefe74eb23f 100644 |
--- a/src/plugin/PluginClass.cpp |
+++ b/src/plugin/PluginClass.cpp |
@@ -1272,9 +1272,10 @@ void CPluginClass::DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, U |
{ |
CPluginSettings* settings = CPluginSettings::GetInstance(); |
std::wstring urlString = GetTab()->GetDocumentUrl(); |
- if (client->IsWhitelistedUrl(urlString)) |
+ std::string filterText; |
+ if (client->IsWhitelistedUrl(urlString, filterText)) |
Oleksandr
2015/03/11 13:10:38
Felix has pointed out that we are actually leaking
sergei
2015/03/11 13:16:06
Has Felix seen the previous approach, which is muc
|
{ |
- settings->RemoveWhiteListedDomain(ToCString(client->GetHostFromUrl(urlString))); |
+ client->RemoveFilter(filterText); |
} |
else |
{ |