diff --git a/src/common_gdbus.cpp b/src/common_gdbus.cpp index 45a16d5..b297f37 100644 --- a/src/common_gdbus.cpp +++ b/src/common_gdbus.cpp @@ -158,10 +158,10 @@ variant_type variant_type::tuple(std::vector&& types) { auto gvar = const_g_type(types[i].data); assert(gvar); g_types[i] = gvar; - types[i] = {}; } variant_type type {}; type.data = g_type_to_any(g_variant_type_new_tuple(g_types.get(), size)); + types.clear(); return type; }