(M17N_OBJECT_UNREF): When freeed, set OBJECT to NULL.
authorhanda <handa>
Thu, 17 Feb 2005 07:44:46 +0000 (07:44 +0000)
committerhanda <handa>
Thu, 17 Feb 2005 07:44:46 +0000 (07:44 +0000)
src/internal.h

index 53eef54..3354e29 100644 (file)
@@ -333,6 +333,7 @@ typedef struct
              (((M17NObject *) (object))->u.freer) (object);    \
            else                                                \
              free (object);                                    \
+           (object) = NULL;                                    \
          }                                                     \
       }                                                                \
   } while (0)