]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aft.c
aft: Do not invalidate status items when closing the audio file table.
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index 157b5a626b58306647fd3a09502efe992ed44bdc..078876be4d5533e438bf75c08f1c1988eba2b768 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -723,7 +723,7 @@ static int get_local_time(uint64_t *seconds, char *buf, size_t size,
                } \
        }
 
                } \
        }
 
-static short unsigned get_duration_width(int seconds)
+__a_const static short unsigned get_duration_width(int seconds)
 {
        short unsigned width;
        unsigned hours = seconds / 3600, mins = (seconds % 3600) / 60;
 {
        short unsigned width;
        unsigned hours = seconds / 3600, mins = (seconds % 3600) / 60;
@@ -2569,10 +2569,6 @@ static void aft_close(void)
 {
        osl_close_table(audio_file_table, OSL_MARK_CLEAN);
        audio_file_table = NULL;
 {
        osl_close_table(audio_file_table, OSL_MARK_CLEAN);
        audio_file_table = NULL;
-       free(status_items);
-       status_items = NULL;
-       free(parser_friendly_status_items);
-       parser_friendly_status_items = NULL;
 }
 
 /**
 }
 
 /**