mirror of git://git.sv.gnu.org/nano.git
Add same regfree call to color.c:update_color()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1208 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
3674c1da71
commit
5e76fe9997
|
@ -33,6 +33,9 @@ CVS code -
|
||||||
(David Benbennick).
|
(David Benbennick).
|
||||||
- Move next_key and pev_key definitions out of main() and into
|
- Move next_key and pev_key definitions out of main() and into
|
||||||
global.c where they belong (David Benbennick).
|
global.c where they belong (David Benbennick).
|
||||||
|
- color.c:
|
||||||
|
update_color()
|
||||||
|
- Add regfree call here to avoid memory leaks.
|
||||||
- configure.ac:
|
- configure.ac:
|
||||||
- Define NDEBUG to silence asserts (David Benbennick).
|
- Define NDEBUG to silence asserts (David Benbennick).
|
||||||
- files.c:
|
- files.c:
|
||||||
|
|
2
color.c
2
color.c
|
@ -191,6 +191,8 @@ void update_color(void)
|
||||||
/* Set colorstrings if we matched the extension regex */
|
/* Set colorstrings if we matched the extension regex */
|
||||||
if (!regexec(&syntaxfile_regexp, filename, 1, synfilematches, 0))
|
if (!regexec(&syntaxfile_regexp, filename, 1, synfilematches, 0))
|
||||||
colorstrings = tmpsyntax->color;
|
colorstrings = tmpsyntax->color;
|
||||||
|
|
||||||
|
regfree(&syntaxfile_regexp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue