Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: ui/aura/root_window_host_x11.cc

Issue 22261009: aura: Fix crash in RootWindowHostX11::GetXImage(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host_x11.cc
diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc
index ad1b957d7b5f4c70b832b60c3b3e15d3394f695b..bdb9e8fc740eed832d7c2446b20e6820d0613ce4 100644
--- a/ui/aura/root_window_host_x11.cc
+++ b/ui/aura/root_window_host_x11.cc
@@ -1092,7 +1092,7 @@ scoped_ptr<ui::XScopedImage> RootWindowHostX11::GetXImage(
snapshot_bounds.x(), snapshot_bounds.y(),
snapshot_bounds.width(), snapshot_bounds.height(),
AllPlanes, ZPixmap)));
- if (!image) {
+ if (!image->get()) {
tfarina 2013/08/10 17:08:58 ok.
LOG(ERROR) << "XGetImage failed";
image.reset();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698