Skip to content

Commit cdaa11b

Browse files
committed
Add a missing null check for compartment monitoring event sink.
1 parent 6b7d93d commit cdaa11b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TextService.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ TextService::~TextService(void) {
6262
source = globalCompartment(it->guid);
6363
else
6464
source = threadCompartment(it->guid);
65-
source->UnadviseSink(it->cookie);
65+
if (source) {
66+
source->UnadviseSink(it->cookie);
67+
}
6668
}
6769
}
6870

0 commit comments

Comments
 (0)