changeset 254:cc6d8d47dbc2

More sidlib_stildb_free() to more logical position in the source.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Jan 2020 20:45:12 +0200
parents c98be346c706
children 3c1cb0f39703
files sidlib.c
diffstat 1 files changed, 18 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/sidlib.c	Sun Jan 05 20:43:41 2020 +0200
+++ b/sidlib.c	Sun Jan 05 20:45:12 2020 +0200
@@ -683,6 +683,24 @@
 }
 
 
+/* Free a given STIL database
+ */
+void sidlib_stildb_free(SIDLibSTILDB *dbh)
+{
+    if (dbh != NULL)
+    {
+        th_llist_free_func((th_llist_t *) dbh->nodes,
+            (void (*)(void *)) sidlib_stildb_node_free);
+
+        dbh->nodes = NULL;
+        dbh->nnodes = 0;
+
+        th_free_r(&dbh->pindex);
+        th_free(dbh);
+    }
+}
+
+
 /* Read database (additively) to given db-structure
  */
 enum
@@ -1109,24 +1127,6 @@
 }
 
 
-/* Free a given STIL database
- */
-void sidlib_stildb_free(SIDLibSTILDB *dbh)
-{
-    if (dbh != NULL)
-    {
-        th_llist_free_func((th_llist_t *) dbh->nodes,
-            (void (*)(void *)) sidlib_stildb_node_free);
-
-        dbh->nodes = NULL;
-        dbh->nnodes = 0;
-
-        th_free_r(&dbh->pindex);
-        th_free(dbh);
-    }
-}
-
-
 /* Get STIL information node from database
  */
 SIDLibSTILNode *sidlib_stildb_get_node(SIDLibSTILDB *dbh, const char *filename)