Commit 120b7348 authored by Jonathan Beck's avatar Jonathan Beck

Protect plist_free against NULL nodes.

parent 5a7a91d4
...@@ -148,8 +148,10 @@ plist_t plist_new_date(int32_t sec, int32_t usec) ...@@ -148,8 +148,10 @@ plist_t plist_new_date(int32_t sec, int32_t usec)
void plist_free(plist_t plist) void plist_free(plist_t plist)
{ {
plist_free_node(plist, NULL); if (plist) {
g_node_destroy(plist); plist_free_node(plist, NULL);
g_node_destroy(plist);
}
} }
static void plist_copy_node(GNode * node, gpointer parent_node_ptr) static void plist_copy_node(GNode * node, gpointer parent_node_ptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment