GLibSharp / GtkSharp

.Net bindings for gtk+3 and above
Other
27 stars 21 forks source link

ValueArray: Create copy when receiving pointer #36

Closed ocrete closed 5 years ago

ocrete commented 5 years ago

The "ref" operation of GValueArray is a copy, so we don't have a choice.

I can reproduce by parsing a large number of messages from the "level" element and getting the "peak" out, if I do it fast enough (like with "audiotestsrc ! level ! fakesink"), it crashes.

I made the matching PR to the mono repo: https://github.com/mono/gtk-sharp/pull/260