diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-16 06:14:00 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-16 07:20:18 -0500 |
commit | 5cc6fb764431063dfc2da801c4fca7fbd4f1f379 (patch) | |
tree | 8dc0af7ceca3d72d7d792f9e896f80cb3c81478e /gtk/gtkimcontextsimple.c | |
parent | 8a66e685a69891de9d01e75cf1024beb71cc5701 (diff) | |
download | gtk+-5cc6fb764431063dfc2da801c4fca7fbd4f1f379.tar.gz |
Avoid an unused variable warning
This was introduced with the recent win32 build fix.
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index 41199f628a..d591896540 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -134,14 +134,11 @@ static gchar* get_x11_compose_file_dir (void) { gchar* compose_file_dir; - gchar* datadir = NULL; #if defined (GDK_WINDOWING_X11) || defined (GDK_WINDOWING_WAYLAND) compose_file_dir = g_strdup (X11_DATA_PREFIX "/share/X11/locale"); #else - datadir = g_strdup (_gtk_get_datadir ()); - compose_file_dir = g_build_filename (datadir, "X11", "locale", NULL); - g_free (datadir); + compose_file_dir = g_build_filename (_gtk_get_datadir (), "X11", "locale", NULL); #endif return compose_file_dir; |