From c35c32f3f0c464701e578a7da6afe54241232291 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 28 Nov 2001 00:54:49 +0000 Subject: [PATCH] g_free_not_null() is now equal to g_free() - didn't notice before this was allowed.. :) I'll remove this macro entirely when I get around rewriting irssi.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2159 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/common.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common.h b/src/common.h index 968c1cd4..1ec4b48b 100644 --- a/src/common.h +++ b/src/common.h @@ -65,10 +65,7 @@ const char *get_irssi_config(void); /* max. size for %d */ #define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1) -#define g_free_not_null(a) \ - G_STMT_START { \ - if (a) g_free(a); \ - } G_STMT_END +#define g_free_not_null(a) g_free(a) #define g_free_and_null(a) \ G_STMT_START { \