Skip to content

Commit

Permalink
ValueArray: Create copy when receiving pointer (#260)
Browse files Browse the repository at this point in the history
The "ref" operation of GValueArray is a copy, so we don't have a
choice.
  • Loading branch information
ocrete authored and Therzok committed Jan 26, 2019
1 parent fa0897d commit 7c36ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glib/ValueArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public ValueArray (uint n_preallocs)

public ValueArray (IntPtr raw)
{
handle = raw;
handle = g_value_array_copy (raw);
}

~ValueArray ()
Expand Down

0 comments on commit 7c36ee5

Please sign in to comment.