[PATCH 13/16] qemuMonitorAddObject: Use g_clear_pointer for a free and reset operation