diff options
author | Matthew J. Francis <mjay.francis@gmail.com> | 2014-09-19 12:46:38 +0800 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-19 08:09:07 +0000 |
commit | e9d3907c39f092ac2db367a51d1322a2d5d12eae (patch) | |
tree | 4564f3e1139787224c82d348c14bd230cc912562 | |
parent | d0f4081d59e185091b2f5fbe690c885d1068a1d5 (diff) |
Fix use of uninitialised value identified by valgrind
m_pLastSyncedDbusMenu was previously only initialised in one of
two constructors
Change-Id: Icd29d1ab314c54544b61ae60b57b29f1fa7d0e3d
Reviewed-on: https://gerrit.libreoffice.org/11530
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | vcl/unx/gtk/window/gtksalframe.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx index 86dd03cdac3d..ad8e692d65d7 100644 --- a/vcl/unx/gtk/window/gtksalframe.cxx +++ b/vcl/unx/gtk/window/gtksalframe.cxx @@ -509,6 +509,9 @@ GtkSalFrame::GtkSalFrame( SalFrame* pParent, sal_uLong nStyle ) m_bDefaultPos = true; m_bDefaultSize = ( (nStyle & SAL_FRAME_STYLE_SIZEABLE) && ! pParent ); m_bWindowIsGtkPlug = false; +#if defined(ENABLE_DBUS) && defined(ENABLE_GIO) + m_pLastSyncedDbusMenu = NULL; +#endif Init( pParent, nStyle ); } |