mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
tests: Fix leak in appmonitor test
Spotted by Daniel Macks. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=785260
This commit is contained in:
parent
2586eb9921
commit
3ce00b29ec
@ -97,11 +97,12 @@ test_app_monitor (void)
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
gchar *path;
|
||||
gchar *path = NULL;
|
||||
|
||||
path = g_mkdtemp (g_strdup ("app_monitor_XXXXXX"));
|
||||
g_setenv ("XDG_DATA_DIRS", path, TRUE);
|
||||
g_setenv ("XDG_DATA_HOME", path, TRUE);
|
||||
g_free (path);
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user