gplugin/gplugin

Ensure Lua state is closed on error

6 months ago, Elliott Sales de Andrade
ab8f907594f5
Ensure Lua state is closed on error

It's done by the plugin object finalize if it's created, but not on the early
exits before the object is created.

Testing Done:
Compiled and ran tests.

Reviewed at https://reviews.imfreedom.org/r/2783/
EionRobb <> EionRobb <eion@robbmob.com>
ivanhoe <107501-ivanhoe@users.noreply.gitlab.com> ivanhoe <ivanhoe@fiscari.de>
Richard Laager <rlaager@pidgin.im> <rlaager@wiktel.com>