diff options
-rw-r--r-- | vcl/unx/generic/app/sm.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/unx/generic/app/sm.cxx b/vcl/unx/generic/app/sm.cxx index 071ac32fdbe1..b38ea0184d82 100644 --- a/vcl/unx/generic/app/sm.cxx +++ b/vcl/unx/generic/app/sm.cxx @@ -511,7 +511,9 @@ void SessionManagerClient::open(SalSession * pSession) SAL_INFO("vcl.sm.debug", " SmcOpenConnection failed: " << aErrBuf); else SAL_INFO("vcl.sm.debug", " SmcOpenConnection succeeded, client ID is " << pClientID ); - m_aClientID = OString(pClientID); + + if (pClientID) + m_aClientID = OString(pClientID); free( pClientID ); pClientID = nullptr; } |