codegen: Only add _error path if there's parameters that require unref
commitd5d2c1b98752d063343ad87e4b1dcd790ea5d21c
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 6 Mar 2017 10:40:24 +0000 (6 11:40 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 6 Mar 2017 13:16:08 +0000 (6 14:16 +0100)
treec59331f4ada17d8ec50885ed565649963e54f387
parentb1155d32da2c490b507565733630c0e238665a8a
codegen: Only add _error path if there's parameters that require unref

Fixes the _error label from being set at the end of a compound statement
if there are no values to unref.

https://bugzilla.gnome.org/show_bug.cgi?id=778540
codegen/valagdbusservermodule.vala