mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
gwin32fsmonitorutils: avoid a possible invalid memory access
This commit is contained in:
parent
dedf65a5fd
commit
6e454a99ef
@ -382,6 +382,10 @@ g_win32_fs_monitor_create (gboolean isfile)
|
|||||||
void
|
void
|
||||||
g_win32_fs_monitor_finalize (GWin32FSMonitorPrivate *monitor)
|
g_win32_fs_monitor_finalize (GWin32FSMonitorPrivate *monitor)
|
||||||
{
|
{
|
||||||
|
g_free (monitor->wfullpath_with_long_prefix);
|
||||||
|
g_free (monitor->wfilename_long);
|
||||||
|
g_free (monitor->wfilename_short);
|
||||||
|
|
||||||
if (monitor->hDirectory == INVALID_HANDLE_VALUE)
|
if (monitor->hDirectory == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
/* If we don't have a directory handle we can free
|
/* If we don't have a directory handle we can free
|
||||||
@ -404,10 +408,6 @@ g_win32_fs_monitor_finalize (GWin32FSMonitorPrivate *monitor)
|
|||||||
*/
|
*/
|
||||||
monitor->self = NULL;
|
monitor->self = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (monitor->wfullpath_with_long_prefix);
|
|
||||||
g_free (monitor->wfilename_long);
|
|
||||||
g_free (monitor->wfilename_short);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user