diff --git a/webshell/tests/viewer/nsViewer.cpp b/webshell/tests/viewer/nsViewer.cpp index 4bf9054a6778..1d5f33c8d204 100644 --- a/webshell/tests/viewer/nsViewer.cpp +++ b/webshell/tests/viewer/nsViewer.cpp @@ -379,8 +379,10 @@ DocObserver::LoadURL(const nsString& aURLSpec, { mURL = aURLSpec; for (int i = 0; i < MAX_RL; i++) { - if (gRLList[i]) + if (gRLList[i]) { PL_strfree(gRLList[i]); + gRLList[i] = 0; + } } gRLPos = 0;