Kaydet (Commit) e8ac831b authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Tor Lillqvist

Fix 'AddressSanitizer: container-overflow' problem detected on OS X

Patch by Noel. Committed and this message written by tml, who doesn't
fully understand what the code does, but this definitely fixes the
problem.

Change-Id: Ifdc9faac0323028fa2888eb4a2d68e6ae5a905ae
üst f1bca4ad
......@@ -165,8 +165,8 @@ void ConfigurationControllerBroadcaster::DisposeAndClear()
}
else
{
Reference<lang::XEventListener> xListener (
iMap->second.front().mxListener, UNO_QUERY);
Reference<XConfigurationChangeListener> xListener (
iMap->second.front().mxListener );
if (xListener.is())
{
// Tell the listener that the configuration controller is
......@@ -174,7 +174,7 @@ void ConfigurationControllerBroadcaster::DisposeAndClear()
// types).
try
{
RemoveListener(iMap->second.front().mxListener);
RemoveListener(xListener);
xListener->disposing(aEvent);
}
catch (const RuntimeException&)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment