mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Merge branch '2891-2892-win32-leaks' into 'main'
gwin32: Fix two minor string leaks Closes #2891 and #2892 See merge request GNOME/glib!3222
This commit is contained in:
commit
20c4fcb2a7
@ -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…
Reference in New Issue
Block a user