mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Fixed segfaults in standalone diff viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
8e55efe547
commit
b9bd749e23
@ -326,8 +326,11 @@ do_edit_at_line (const char *what, int start_line)
|
||||
}
|
||||
execute_with_vfs_arg (editor, what);
|
||||
}
|
||||
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
|
||||
repaint_screen ();
|
||||
if (mc_run_mode == MC_RUN_FULL)
|
||||
{
|
||||
update_panels (UP_OPTIMIZE, UP_KEEPSEL);
|
||||
repaint_screen ();
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1629,7 +1629,7 @@ static void
|
||||
cc_free_elt (void *elt)
|
||||
{
|
||||
DIFFLN *p = elt;
|
||||
if (p->p)
|
||||
if (p != NULL)
|
||||
{
|
||||
g_free (p->p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user