summaryrefslogtreecommitdiffstats
path: root/lexer
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-04 20:09:19 +0100
committerDave Davenport <qball@gmpclient.org>2017-03-04 20:09:19 +0100
commitcb9255bbea60cb3fb729ac4c1ccd6381ae9597ff (patch)
treeda73eb4918bcfc97e487dfaa707f59098b99b01d /lexer
parent3f4d58ef531a17d6667318a4e8f9390a383ffab6 (diff)
Allow slice allocator for theme
Diffstat (limited to 'lexer')
-rw-r--r--lexer/theme-parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y
index 61c4553e..fcbc0f49 100644
--- a/lexer/theme-parser.y
+++ b/lexer/theme-parser.y
@@ -76,7 +76,7 @@ entries:
%empty {
// There is always a base widget.
if (rofi_theme == NULL ){
- $$ = rofi_theme = (ThemeWidget*)g_malloc0 (sizeof(ThemeWidget));
+ $$ = rofi_theme = g_slice_new0 ( ThemeWidget );
rofi_theme->name = g_strdup ( "Root" );
}
}