aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-01-25 22:49:58 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-01-25 22:49:58 +0000
commit9c10169b973eaa0ada0a74a0954a7c7f02a8965c (patch)
tree4eb76431d123aaebdcb9b2942965d887401c78bc /plugins
parent3cbb83e490f8e553f2f688577c9788c884787727 (diff)
two bugs less
svn path=/trunk/; revision=17104
Diffstat (limited to 'plugins')
-rw-r--r--plugins/lua/lua_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/lua/lua_proto.c b/plugins/lua/lua_proto.c
index bfd1c5c30c..be28e6ec92 100644
--- a/plugins/lua/lua_proto.c
+++ b/plugins/lua/lua_proto.c
@@ -411,14 +411,14 @@ static int ProtoFieldArray_tostring(lua_State* L) {
}
static int ProtoFieldArray_gc(lua_State* L) {
- ProtoFieldArray fa = checkValueString(L,1);
+ ProtoFieldArray fa = checkProtoFieldArray(L,1);
gboolean free_it = FALSE;
/* we'll keep the data if the array was registered to a protocol */
if (fa->len) {
hf_register_info* f = (hf_register_info*)fa->data;
- if ( *(f->p_id) == -2)
+ if ( *(f->p_id) == -1)
free_it = TRUE;
} else {
free_it = TRUE;