diff options
Diffstat (limited to 'vcl/source/window/event.cxx')
-rw-r--r-- | vcl/source/window/event.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index b73614102cb1..8fcc65bf3735 100644 --- a/vcl/source/window/event.cxx +++ b/vcl/source/window/event.cxx @@ -264,11 +264,11 @@ void Window::RemoveChildEventListener( const Link<>& rEventListener ) mpWindowImpl->maChildEventListeners.removeListener( rEventListener ); } -ImplSVEvent * Window::PostUserEvent( const Link<>& rLink, void* pCaller, bool bReferenceLink ) +ImplSVEvent * Window::PostUserEvent( const Link<void*,void>& rLink, void* pCaller, bool bReferenceLink ) { ImplSVEvent* pSVEvent = new ImplSVEvent; pSVEvent->mpData = pCaller; - pSVEvent->mpLink = new Link<>( rLink ); + pSVEvent->maLink = rLink; pSVEvent->mpWindow = this; pSVEvent->mbCall = true; if (bReferenceLink) @@ -284,7 +284,6 @@ ImplSVEvent * Window::PostUserEvent( const Link<>& rLink, void* pCaller, bool bR if ( !mpWindowImpl->mpFrame->PostEvent( pSVEvent ) ) { ImplRemoveDel( &(pSVEvent->maDelData) ); - delete pSVEvent->mpLink; delete pSVEvent; pSVEvent = 0; } |