From c87cfdccca98c3bad1d3c7592e81e2d307d40c36 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 10 Feb 2005 06:21:45 +0000
Subject: [PATCH] Add FREE_AND_NULL macro.

---
 src/uifc/uifc.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/uifc/uifc.h b/src/uifc/uifc.h
index 80cd861536..fb3409ab38 100644
--- a/src/uifc/uifc.h
+++ b/src/uifc/uifc.h
@@ -104,6 +104,9 @@
 	#define LFREE free
 	#define FREE free
 #endif
+#if !defined(FREE_AND_NULL)
+	#define FREE_AND_NULL(x)			if(x!=NULL) { FREE(x); x=NULL; }
+#endif
 
 #if !defined(MAX_PATH)	/* maximum path length */
 	#if defined MAXPATHLEN
-- 
GitLab