Bug 1130707 (Followup) - Add missing return statement. r=me
authorSeth Fowler <seth@mozilla.com>
Tue, 10 Feb 2015 14:28:14 -0800
changeset 228544 268487086acab3ab9d6ff55ca473c263f79f0031
parent 228543 7fed536bd68978c0f6386f127349613ae0fd0ab5
child 228545 12a1a7c603257ae3af3b167aa6f3cb3a76949564
push id28264
push usercbook@mozilla.com
push dateWed, 11 Feb 2015 13:58:35 +0000
treeherdermozilla-central@38058cb42a0e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1130707
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1130707 (Followup) - Add missing return statement. r=me
image/src/RasterImage.cpp
--- a/image/src/RasterImage.cpp
+++ b/image/src/RasterImage.cpp
@@ -1179,16 +1179,17 @@ RasterImage::OnImageDataComplete(nsIRequ
 
 void
 RasterImage::NotifyForDecodeOnDrawOnly()
 {
   if (!NS_IsMainThread()) {
     nsCOMPtr<nsIRunnable> runnable =
       NS_NewRunnableMethod(this, &RasterImage::NotifyForDecodeOnDrawOnly);
     NS_DispatchToMainThread(runnable);
+    return;
   }
 
   NotifyProgress(FLAG_DECODE_STARTED | FLAG_ONLOAD_BLOCKED);
 }
 
 nsresult
 RasterImage::OnImageDataAvailable(nsIRequest*,
                                   nsISupports*,