Bug 637957 - Followup, add proper QI. rs=mossop a=blocker-orange-fix

This commit is contained in:
Marco Bonardo 2011-03-02 21:25:11 +01:00
Родитель b96228ef38
Коммит b86e6eedff
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -101,7 +101,8 @@ public:
// Hold a strong reference to the callback while notifying it, so that if
// it spins the event loop, the callback won't be released and freed out
// from under us.
nsCOMPtr<mozIStorageStatementCallback> callback = mCallback;
nsCOMPtr<mozIStorageStatementCallback> callback =
do_QueryInterface(mCallback);
(void)mCallback->HandleResult(mResults);
}
@ -136,7 +137,8 @@ public:
// Hold a strong reference to the callback while notifying it, so that if
// it spins the event loop, the callback won't be released and freed out
// from under us.
nsCOMPtr<mozIStorageStatementCallback> callback = mCallback;
nsCOMPtr<mozIStorageStatementCallback> callback =
do_QueryInterface(mCallback);
(void)mCallback->HandleError(mErrorObj);
}