Fixed some memory leaks.

Called XFree() after XGetWindowProperty().
Called g_list_free() after gtk_container_get_children().
Do not call strdup for gtk_tree_store_set().