summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comIvy/Bus.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/comIvy/Bus.cpp b/comIvy/Bus.cpp
index 393406a..66f2f2c 100644
--- a/comIvy/Bus.cpp
+++ b/comIvy/Bus.cpp
@@ -95,9 +95,7 @@ STDMETHODIMP CBus::Bind(BSTR regexp, IExpression** binding)
HRESULT hRes = CExpression::CreateInstance(binding);
if ( hRes != S_OK ) return hRes;
CExpression* bind = (CExpression*)*binding;
- this->AddRef();
- bind->bus = this;
- bind->id = bus->BindMsg( regexpstr, bind );
+ bind->Bind( regexpstr, this );
delete regexpstr;
return hRes;
}