[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Sat Aug 1 12:37:51 PDT 2015
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit b5423da269dc218b37d7fe6c675b032d950bcd54
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Aug 1 20:22:06 2015 +0100
valgrind: memleak
Change-Id: Ie2a42162d3092a8213b8532d9325f4ed199ec2a4
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 787d405..1d3e184 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -1776,12 +1776,12 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
aStyleSet.SetCairoFontOptions( pNewOptions );
// finally update the collected settings
rSettings.SetStyleSettings( aStyleSet );
+#if OSL_DEBUG_LEVEL > 1
gchar* pThemeName = NULL;
g_object_get( pSettings, "gtk-theme-name", &pThemeName, nullptr );
- #if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "Theme name is \"%s\"\n", pThemeName );
- #endif
-
+ g_free(pThemeName);
+#endif
}
bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nPart )
More information about the Libreoffice-commits
mailing list