Index: cc/surfaces/surface_aggregator.cc |
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc |
index 050a2f0e0f3b999dcaab8c5a63b428fff4a444e0..a564c56931cd281d0ab7158a9c7a38f4ed55b8dc 100644 |
--- a/cc/surfaces/surface_aggregator.cc |
+++ b/cc/surfaces/surface_aggregator.cc |
@@ -58,7 +58,8 @@ class SurfaceAggregator::RenderPassIdAllocator { |
static void UnrefHelper(base::WeakPtr<SurfaceFactory> surface_factory, |
const ReturnedResourceArray& resources, |
BlockingTaskRunner* main_thread_task_runner) { |
- surface_factory->UnrefResources(resources); |
+ if (surface_factory) |
jamesr
2014/09/12 01:08:55
whoops
|
+ surface_factory->UnrefResources(resources); |
} |
RenderPassId SurfaceAggregator::RemapPassId(RenderPassId surface_local_pass_id, |