Skip to content

Commit 9c89706

Browse files
committed
pkmon: Fix g_object_unref() assertion error
Fixes the following assertion failure. $ pkmon --version 1.3.1 (pkmon:15069): GLib-GObject-CRITICAL **: 07:11:30.866: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
1 parent d5e5be6 commit 9c89706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/pk-monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,6 @@ main (int argc, char *argv[])
414414
/* spin */
415415
g_main_loop_run (loop);
416416
out:
417-
g_object_unref (client);
417+
g_clear_object (&client);
418418
return retval;
419419
}

0 commit comments

Comments
 (0)