Free FS info before closing panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
69988b0395
Коммит
cc26fd2bec
@ -688,7 +688,7 @@ read_filesystem_list(int need_fs_type, int all_fs)
|
|||||||
#endif /* HAVE_INFOMOUNT_QNX */
|
#endif /* HAVE_INFOMOUNT_QNX */
|
||||||
|
|
||||||
void
|
void
|
||||||
init_my_statfs (void)
|
free_my_statfs (void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_INFOMOUNT_LIST
|
#ifdef HAVE_INFOMOUNT_LIST
|
||||||
while (mount_list) {
|
while (mount_list) {
|
||||||
@ -696,7 +696,16 @@ init_my_statfs (void)
|
|||||||
free_mount_entry (mount_list);
|
free_mount_entry (mount_list);
|
||||||
mount_list = next;
|
mount_list = next;
|
||||||
}
|
}
|
||||||
|
mount_list = NULL;
|
||||||
|
#endif /* HAVE_INFOMOUNT_LIST */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
init_my_statfs (void)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_INFOMOUNT_LIST
|
||||||
|
free_my_statfs ();
|
||||||
mount_list = read_filesystem_list (1, 1);
|
mount_list = read_filesystem_list (1, 1);
|
||||||
#endif /* HAVE_INFOMOUNT_LIST */
|
#endif /* HAVE_INFOMOUNT_LIST */
|
||||||
}
|
}
|
||||||
|
@ -36,5 +36,6 @@ struct my_statfs {
|
|||||||
|
|
||||||
void init_my_statfs (void);
|
void init_my_statfs (void);
|
||||||
void my_statfs (struct my_statfs *myfs_stats, const char *path);
|
void my_statfs (struct my_statfs *myfs_stats, const char *path);
|
||||||
|
void free_my_statfs (void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -3100,6 +3100,7 @@ panel_callback (Widget * w, widget_msg_t msg, int parm)
|
|||||||
|
|
||||||
case WIDGET_DESTROY:
|
case WIDGET_DESTROY:
|
||||||
panel_destroy (panel);
|
panel_destroy (panel);
|
||||||
|
free_my_statfs ();
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user