Fixed segfaults in standalone diff viewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-03-21 16:19:34 +03:00 committed by Ilia Maslakov
parent 8e55efe547
commit b9bd749e23
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -1629,7 +1629,7 @@ static void
cc_free_elt (void *elt)
{
DIFFLN *p = elt;
if (p->p)
if (p != NULL)
{
g_free (p->p);
}