Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
api_idnode: add missing idnode_perm_unset() calls
  • Loading branch information
perexg committed Mar 7, 2016
1 parent b7c2b58 commit 68d2100
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/api_idnode.c
Expand Up @@ -365,6 +365,7 @@ api_idnode_load_simple
if (!idnode_perm(in, perm, NULL)) {
l = htsmsg_create_list();
m = idnode_serialize0(in, flist, 0, perm->aa_lang_ui);
idnode_perm_unset(in);
if (meta > 0)
htsmsg_add_msg(m, "meta", idclass_serialize0(in->in_class, flist, 0, perm->aa_lang_ui));
htsmsg_add_msg(l, NULL, m);
Expand Down Expand Up @@ -644,6 +645,7 @@ api_idnode_handler
continue;
}
handler(perm, in);
idnode_perm_unset(in);
cnt++;
}
htsmsg_destroy(msg);
Expand Down

0 comments on commit 68d2100

Please sign in to comment.