Fix building without logging enabled

This commit is contained in:
Thomas E. Horner 2018-04-20 07:57:31 +02:00 committed by Jef Driesen
parent 26f4cae47c
commit 4879174164

View File

@ -189,7 +189,9 @@ dc_context_free (dc_context_t *context)
if (context == NULL)
return DC_STATUS_SUCCESS;
#ifdef ENABLE_LOGGING
dc_timer_free (context->timer);
#endif
free (context);
return DC_STATUS_SUCCESS;