Cleaner up the previous commit

This commit is contained in:
Přemysl Eric Janouch 2015-02-09 20:34:59 +01:00
parent 4c888034f8
commit 16dce195c1
1 changed files with 2 additions and 9 deletions

View File

@ -30,15 +30,8 @@
#include "config.h"
#if ! GLIB_CHECK_VERSION (2, 34, 0)
static void
g_clear_pointer (void **pointer, void (*destroy) (void *))
{
if (*pointer)
{
destroy (*pointer);
*pointer = NULL;
}
}
#define g_clear_pointer(p, destroy) \
G_STMT_START if (*(p)) { (destroy) (*(p)); *(p) = NULL; } G_STMT_END
#endif // ! GLIB_CHECK_VERSION (2, 34)
/** User interface string for GtkBuilder. */