mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
gwin32fsmonitorutils: no need to check for NULL when using g_free
This commit is contained in:
parent
007e3c5939
commit
922cd8424a
@ -352,7 +352,6 @@ g_win32_fs_monitor_init (GWin32FSMonitorPrivate *monitor,
|
|||||||
FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED,
|
FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
if (wdirname_with_long_prefix != NULL)
|
|
||||||
g_free (wdirname_with_long_prefix);
|
g_free (wdirname_with_long_prefix);
|
||||||
g_free (dirname_with_long_prefix);
|
g_free (dirname_with_long_prefix);
|
||||||
|
|
||||||
@ -405,10 +404,9 @@ void g_win32_fs_monitor_finalize (GWin32FSMonitorPrivate *monitor)
|
|||||||
*/
|
*/
|
||||||
monitor->self = NULL;
|
monitor->self = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (monitor->wfullpath_with_long_prefix);
|
g_free (monitor->wfullpath_with_long_prefix);
|
||||||
if (monitor->wfilename_long != NULL)
|
|
||||||
g_free (monitor->wfilename_long);
|
g_free (monitor->wfilename_long);
|
||||||
if (monitor->wfilename_short != NULL)
|
|
||||||
g_free (monitor->wfilename_short);
|
g_free (monitor->wfilename_short);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user