diff --git a/src/pseudomap.c b/src/pseudomap.c index 73bcaff..3b62e5b 100644 --- a/src/pseudomap.c +++ b/src/pseudomap.c @@ -28,6 +28,7 @@ pseudomap *pseudomap_create(void) { } void pseudomap_destroy(pseudomap *o) { + if(!o) return; while(sblist_getsize(o)) { /* retrieve latest element, and "shrink" list in place, so we don't have to constantly rearrange list items