| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 1feaf5a20c5af166c7f2c865c1c78e257c702bd2..eab7c8072a3c7cb221d92ab0f1dd52d470084f67 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -512,6 +512,16 @@ void RegisteredExtension::Register(RegisteredExtension* that) {
|
| }
|
|
|
|
|
| +void RegisteredExtension::UnregisterAll() {
|
| + RegisteredExtension* re = first_extension_;
|
| + while (re != NULL) {
|
| + RegisteredExtension* next = re->next();
|
| + delete re;
|
| + re = next;
|
| + }
|
| +}
|
| +
|
| +
|
| void RegisterExtension(Extension* that) {
|
| RegisteredExtension* extension = new RegisteredExtension(that);
|
| RegisteredExtension::Register(extension);
|
|
|