Comment 0 for bug 1104136

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Dbusmenu seems to assume in multiple places that g_variant_parse() returns a floating reference. It doesn't, so these GVariant's are leaked.

It does things like:

  g_variant_builder_add_value(&builder, g_variant_parse(....));

  GVariant *variant = g_variant_parse(....);
  g_variant_ref_sink(variant);
  ...
  g_variant_unref(variant);

Both of these cases result in a leak