summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 787d405ff9b6..1d3e184f857d 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 )