diff --git a/content.c b/content.c index 994f907587..b90f2bde66 100644 --- a/content.c +++ b/content.c @@ -1722,7 +1722,8 @@ bool content_ctl(enum content_ctl_state state, void *data) case CONTENT_CTL_IS_INITED: return content_is_inited; case CONTENT_CTL_DEINIT: - content_ctl(CONTENT_CTL_TEMPORARY_FREE, NULL); + content_file_free(temporary_content); + temporary_content = NULL; content_crc = 0; content_is_inited = false; core_does_not_need_content = false; @@ -1739,10 +1740,6 @@ bool content_ctl(enum content_ctl_state state, void *data) } content_ctl(CONTENT_CTL_DEINIT, NULL); return false; - case CONTENT_CTL_TEMPORARY_FREE: - content_file_free(temporary_content); - temporary_content = NULL; - break; case CONTENT_CTL_STREAM_CRC_CALCULATE: { content_stream_t *stream = NULL; diff --git a/content.h b/content.h index 7523da1565..d31fe7e8cd 100644 --- a/content.h +++ b/content.h @@ -48,15 +48,8 @@ enum content_ctl_state CONTENT_CTL_DEINIT, - CONTENT_CTL_GET_CRC, - - - - /* Frees temporary content handle. */ - CONTENT_CTL_TEMPORARY_FREE, - CONTENT_CTL_STREAM_CRC_CALCULATE };