node-gtk doesn't correctly handle transfer-full, in argument
Opened this issue · 0 comments
peat-psuwit commented
While investing some code for #302, I noticed that node-gtk doesn't seem to take argument's transfer mode into account while filing GIArgument
. So, I wrote a test case to test that, and it seems like it's the case.
let gstPromise = new Gst.Promise();
let structure = Gst.Structure.newEmpty('test');
gstPromise.reply(structure); // gstPromise now owns backing GstStructure.
gstPromise = null;
global.gc();
// Causes an assertion and return false
console.log(structure.isEqual(structure));
I've turned this into a test case for node-gtk in #303, so when it's fixed, there will be a test case ready.