зеркало из https://github.com/mozilla/pjs.git
Bug 482809 Crash [@ jsds_SyncFilter(FilterRecord*, jsdIFilter*) ] when appendFilter() called with Console2 installed
removing errant change that crept into rev 36f4da6e262a with the fix for bug 136292 r=roc
This commit is contained in:
Родитель
32f7b70168
Коммит
f23744b0e2
|
@ -2723,7 +2723,7 @@ jsdService::InsertFilter (jsdIFilter *filter, jsdIFilter *after)
|
|||
if (jsds_FindFilter (filter))
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
FilterRecord *rec = new FilterRecord;
|
||||
FilterRecord *rec = PR_NEWZAP (FilterRecord);
|
||||
if (!rec)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
|
@ -2765,7 +2765,7 @@ jsdService::AppendFilter (jsdIFilter *filter)
|
|||
NS_ENSURE_ARG_POINTER (filter);
|
||||
if (jsds_FindFilter (filter))
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
FilterRecord *rec = new FilterRecord;
|
||||
FilterRecord *rec = PR_NEWZAP (FilterRecord);
|
||||
|
||||
if (!jsds_SyncFilter (rec, filter)) {
|
||||
PR_Free (rec);
|
||||
|
|
Загрузка…
Ссылка в новой задаче