[grilo-plugins] lua-factory: avoid leak of GrlNetWc on failure
- From: Victor Toso de Carvalho <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] lua-factory: avoid leak of GrlNetWc on failure
- Date: Thu, 26 May 2016 11:20:10 +0000 (UTC)
commit b53c9027a65b864a213d67b4ddad321643928713
Author: Victor Toso <me victortoso com>
Date: Sat May 21 08:51:37 2016 +0200
lua-factory: avoid leak of GrlNetWc on failure
https://bugzilla.gnome.org/show_bug.cgi?id=764078
src/lua-factory/grl-lua-library.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index b101653..c70be08 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -1470,7 +1470,6 @@ grl_l_unzip (lua_State *L)
}
GRL_DEBUG ("grl.unzip() -> '%s'", url);
- wc = net_wc_new_with_options (L, 3);
os = grl_lua_operations_get_current_op (L);
if (os == NULL) {
luaL_error (L, "grl.unzip() failed: Can't retrieve current operation. "
@@ -1478,6 +1477,7 @@ grl_l_unzip (lua_State *L)
"is still active");
return 0;
}
+ wc = net_wc_new_with_options (L, 3);
uo = g_new0 (UnzipOperation, 1);
uo->L = L;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]