Skip to content

Commit d07b689

Browse files
committed
codegen: Plug leak in server-side GDBus reply handling
Introduced by me when optimizing the reply handling in 74a66f9. Kudos to @rev1si0n for reporting and helping track this one down.
1 parent e29e312 commit d07b689

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

codegen/valagdbusservermodule.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ public class Vala.GDBusServerModule : GDBusClientModule {
480480

481481
if (ready_data_expr != null && !ready) {
482482
ccode.open_if (new CCodeIdentifier ("_fire_and_forget"));
483+
484+
var unref_call = new CCodeFunctionCall (new CCodeIdentifier ("g_object_unref"));
485+
unref_call.add_argument (new CCodeMemberAccess.pointer (ready_data_expr, "_invocation_"));
486+
ccode.add_expression (unref_call);
483487
}
484488

485489
foreach (Parameter param in m.get_parameters ()) {

0 commit comments

Comments
 (0)