GNOME Bugzilla – Bug 706525
Rygel stores unowned Structure in var
Last modified: 2013-08-26 09:23:10 UTC
Rygel stores unowned Structure in var which fails to compile, at least on valac 0.22: rygel-playbin-player.vala:411.25-411.46: error: duplicating Structure instance, use unowned variable or explicitly invoke copy method var structure = caps.get_structure (0); ^^^^^^^^^^^^^^^^^^^^^ (...) rygel-media-export-item-factory.vala:276.25-276.60: error: duplicating Structure instance, use unowned variable or explicitly invoke copy method var structure = sample.get_caps ().get_structure (0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Created attachment 252641 [details] [review] Fix error due to storing unowned value in variable
Hm, I fixed the media-engine half of it in https://git.gnome.org/browse/rygel/commit/?id=0984169789698d5c038a5ce1230e2ea2328eb9fc and my valac didn't complain about the other part...
committed the missing part, thanks