--- rxvt-unicode/src/salloc.C 2004/05/09 18:19:49 1.7 +++ rxvt-unicode/src/salloc.C 2011/02/21 07:41:03 1.11 @@ -1,9 +1,9 @@ -/*--------------------------------*-C-*---------------------------------* +/*----------------------------------------------------------------------* * File: salloc.C *----------------------------------------------------------------------* * * All portions of code are copyright by their respective author/s. - * Copyright (c) 2003-2004 Marc Lehmann + * Copyright (c) 2003-2006 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -89,6 +89,9 @@ void rxvt_salloc::free (void *data) { + if (!data) + return; + chain *line = (chain *)data; line->next = firstline; firstline = line;