From: handa Date: Thu, 17 Feb 2005 07:44:46 +0000 (+0000) Subject: (M17N_OBJECT_UNREF): When freeed, set OBJECT to NULL. X-Git-Tag: REL-1-3-0~396 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c1d6449116555915fa8fd8af7b904ccf461555;p=m17n%2Fm17n-lib.git (M17N_OBJECT_UNREF): When freeed, set OBJECT to NULL. --- diff --git a/src/internal.h b/src/internal.h index 53eef54..3354e29 100644 --- a/src/internal.h +++ b/src/internal.h @@ -333,6 +333,7 @@ typedef struct (((M17NObject *) (object))->u.freer) (object); \ else \ free (object); \ + (object) = NULL; \ } \ } \ } while (0)