gwin32: Fix two minor string leaks

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #2891, #2892
This commit is contained in:
Philip Withnall 2023-01-23 11:50:34 +00:00
parent 34c5a689b5
commit e23ea40aaa
2 changed files with 3 additions and 0 deletions

View File

@ -406,6 +406,8 @@ g_win32_mount_get_icon (GMount *mount)
{
win32_mount->icon = g_themed_icon_new_with_default_fallbacks (_win32_drive_type_to_icon (win32_mount->drive_type, FALSE));
}
g_free (wfn);
}
return g_object_ref (win32_mount->icon);

View File

@ -316,6 +316,7 @@ g_win32_fs_monitor_init (GWin32FSMonitorPrivate *monitor,
wcsdup (wshortname);
}
g_free (wfullpath);
g_free (fullpath);
}
else