mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
gwin32: Fix two minor string leaks
Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2891, #2892
This commit is contained in:
parent
34c5a689b5
commit
e23ea40aaa
@ -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));
|
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);
|
return g_object_ref (win32_mount->icon);
|
||||||
|
@ -316,6 +316,7 @@ g_win32_fs_monitor_init (GWin32FSMonitorPrivate *monitor,
|
|||||||
wcsdup (wshortname);
|
wcsdup (wshortname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (wfullpath);
|
||||||
g_free (fullpath);
|
g_free (fullpath);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user