# HG changeset patch # User Mike Becker # Date 1731007376 -3600 # Node ID e8f354a25ac8a093a82f7d2b6709e59916a7b069 # Parent b040340bf64da4ef9df415ca79251d15a71d565c let cxMapDestroy() ignore NULL as any free()-like function should do diff -r b040340bf64d -r e8f354a25ac8 src/cx/map.h --- a/src/cx/map.h Sun Nov 03 20:15:14 2024 +0100 +++ b/src/cx/map.h Thu Nov 07 20:22:56 2024 +0100 @@ -204,8 +204,8 @@ * * @param map the map to be destroyed */ -__attribute__((__nonnull__)) static inline void cxMapDestroy(CxMap *map) { + if (map == NULL) return; map->cl->destructor(map); }