Skip to content
Permalink
Browse files

auto_free: quiet glib warning about freeing timer when auto_free was …

…never used

Signed-off-by: Burt P <pburt0@gmail.com>
  • Loading branch information...
bp0 authored and lpereira committed Sep 7, 2019
1 parent 42c8ff1 commit 9b17b17c56c62bfc1b72b74e5fa623f1ad47955e
Showing with 2 additions and 1 deletion.
  1. +2 −1 deps/sysobj_early/src/auto_free.c
@@ -184,7 +184,8 @@ void free_auto_free_thread_final() {
void free_auto_free_final() {
free_final = TRUE;
free_auto_free_ex(TRUE);
g_timer_destroy(auto_free_timer);
if (auto_free_timer)
g_timer_destroy(auto_free_timer);
auto_free_timer = NULL;
}

0 comments on commit 9b17b17

Please sign in to comment.
You can’t perform that action at this time.