mirror of https://github.com/MidnightCommander/mc
Direct commit: Fixed double memory free in input histoey list.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
3415416be8
commit
63c0f34dce
|
@ -250,7 +250,7 @@ push_history (WInput * in, const char *text)
|
||||||
in->history = list_append_unique (in->history, t);
|
in->history = list_append_unique (in->history, t);
|
||||||
in->history_changed = TRUE;
|
in->history_changed = TRUE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
g_free (t);
|
g_free (t);
|
||||||
|
|
||||||
in->need_push = FALSE;
|
in->need_push = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue