Change eFree() to simply ignore NULL pointers instead of asserting.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4857 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2010-04-25 17:42:24 +00:00
parent 95d82159a8
commit 2eea747db2
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@
* src/win32.c:
Change the limit for the command line length when executing commands
to a maximum of 32768 characters (closes #2979697).
* tagmanager/ctags.c:
Change eFree() to simply ignore NULL pointers instead of asserting.
2010-04-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -373,8 +373,8 @@ extern void *eRealloc (void *const ptr, const size_t size)
extern void eFree (void *const ptr)
{
Assert (ptr != NULL);
free (ptr);
if (ptr != NULL)
free (ptr);
}
extern void toLowerString (char* str)