Bug 1470420: followup: Try to fix the build in some compilers. r=me CLOSED TREE
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 22 Jun 2018 17:42:56 +0200
changeset 809825 3ca934cfed6aef41401327315a8fb8d8dcd0b78f
parent 809655 54b5db87eb7e86b8f05c9e94c8e2353b87e78403
child 809826 75c94135e9cb3d6c8fb15edf8d200c2c3cb93957
push id113822
push userbmo:sahith.reddy@gmail.com
push dateSat, 23 Jun 2018 04:02:45 +0000
reviewersme
bugs1470420
milestone62.0a1
Bug 1470420: followup: Try to fix the build in some compilers. r=me CLOSED TREE MozReview-Commit-ID: Hc7LRfl16ED
layout/style/Loader.cpp
--- a/layout/style/Loader.cpp
+++ b/layout/style/Loader.cpp
@@ -2510,17 +2510,17 @@ Loader::Stop()
   }
   if (loadingCount) {
     StopLoadingSheets(mSheets->mLoadingDatas, arr);
   }
 
   for (RefPtr<SheetLoadData>& data : mPostedEvents) {
     data->mIsCancelled = true;
     // SheetComplete() calls Release(), so give this an extra ref.
-    NS_ADDREF(data);
+    NS_ADDREF(data.get());
     // Move since we're about to get rid of the array below.
     arr.AppendElement(std::move(data));
   }
   mPostedEvents.Clear();
 
   mDatasToNotifyOn += arr.Length();
   for (RefPtr<SheetLoadData>& data : arr) {
     --mDatasToNotifyOn;