W32: don't put a string literal into gtk_libdir

In all other instances gtk_libdir is a dynamically-allocated string,
so dup the literal in this case as well.
This commit is contained in:
Руслан Ижбулатов 2018-06-16 18:22:12 +00:00
parent fb4d76d380
commit 6bf88d90f3

View File

@ -161,7 +161,7 @@ _gtk_get_libdir (void)
gchar *slash = strrchr (root, '\\');
if (slash != NULL &&
g_ascii_strcasecmp (slash + 1, ".libs") == 0)
gtk_libdir = GTK_LIBDIR;
gtk_libdir = g_strdup (GTK_LIBDIR);
else
gtk_libdir = g_build_filename (root, "lib", NULL);
g_free (root);