Memory management review: match char-malloc/strdup-free, gchar-g_str*/g_free; set pointers to null after free; initialize fonts/backgrounds correctly when missing from config
git-svn-id: http://tint2.googlecode.com/svn/trunk@748 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
321ccc0794
commit
af003d0e19
@@ -64,8 +64,8 @@ void stop_multi_timeout(timeout* t);
|
||||
|
||||
void default_timeout()
|
||||
{
|
||||
timeout_list = 0;
|
||||
multi_timeouts = 0;
|
||||
timeout_list = NULL;
|
||||
multi_timeouts = NULL;
|
||||
}
|
||||
|
||||
void cleanup_timeout()
|
||||
@@ -79,7 +79,7 @@ void cleanup_timeout()
|
||||
}
|
||||
if (multi_timeouts) {
|
||||
g_hash_table_destroy(multi_timeouts);
|
||||
multi_timeouts = 0;
|
||||
multi_timeouts = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user