Setting pointers to NULL after freeing

This commit is contained in:
whydoubt
2004-04-24 20:37:13 +00:00
parent 7b34e5e88c
commit 382a0fca39
4 changed files with 9 additions and 4 deletions

View File

@@ -175,7 +175,6 @@ mdb_close(MdbHandle *mdb)
mdb->f->refs--;
if (mdb->f->refs<=0) {
mdb_free_file(mdb->f);
mdb->f = NULL;
}
}
mdb_free_handle(mdb);

View File

@@ -59,6 +59,7 @@ mdb_free_props(MdbProperties *props)
if (props->name) g_free(props->name);
g_free(props);
props = NULL;
}
MdbProperties *
mdb_alloc_props()