Commit e4ca104
[Linux] fix method response memory leaks (#159)
`fl_method_success_response_new()` does not take ownership of the value
but increments its reference count by one. Using `g_autoptr` is an
"easy" way to ensure that the newly allocated values get unreferenced
at the end of the scope and that way released as appropriate when the
success response is done with them.
Co-authored-by: LiJianying <[email protected]>1 parent d5a2b21 commit e4ca104
1 file changed
+89
-91
lines changed
0 commit comments