summaryrefslogtreecommitdiff
path: root/cpputil
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2017-08-10 10:40:49 +0200
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2017-08-10 10:40:49 +0200
commit0d7abedc4a7ab20bdb14196cb247488a65f5f5e4 (patch)
tree95c416e700ae7863733fcb8ad8407ec3e0dda005 /cpputil
parent641a9472f8bab01eb1594cdc89945a666a2b2d85 (diff)
downloadnss-hg-0d7abedc4a7ab20bdb14196cb247488a65f5f5e4.tar.gz
Bug 1383824 - set slot->isLoggedIn after setting password, r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D391
Diffstat (limited to 'cpputil')
-rw-r--r--cpputil/scoped_ptrs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpputil/scoped_ptrs.h b/cpputil/scoped_ptrs.h
index 9f224dfc0..b92b8132b 100644
--- a/cpputil/scoped_ptrs.h
+++ b/cpputil/scoped_ptrs.h
@@ -36,6 +36,7 @@ struct ScopedDelete {
void operator()(PK11URI* uri) { PK11URI_DestroyURI(uri); }
void operator()(PLArenaPool* arena) { PORT_FreeArena(arena, PR_FALSE); }
void operator()(PK11Context* context) { PK11_DestroyContext(context, true); }
+ void operator()(PK11GenericObject* obj) { PK11_DestroyGenericObject(obj); }
};
template <class T>
@@ -66,6 +67,7 @@ SCOPED(SECKEYPrivateKeyList);
SCOPED(PK11URI);
SCOPED(PLArenaPool);
SCOPED(PK11Context);
+SCOPED(PK11GenericObject);
#undef SCOPED