mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02: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
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue