mirror of
https://github.com/irssi/irssi.git
synced 2024-10-06 04:53:38 -04:00
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
This commit is contained in:
parent
337ae1a862
commit
c35c32f3f0
@ -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 { \
|
||||
|
Loading…
Reference in New Issue
Block a user