broadway: Handle NULL surface in update

This happen if nothing has been drawn yet.
This commit is contained in:
Alexander Larsson 2012-12-27 22:19:23 +01:00
parent e00bc73de8
commit ec45d2f8c7

View File

@ -598,6 +598,9 @@ _gdk_broadway_server_window_update (GdkBroadwayServer *server,
BroadwayRequestUpdate msg;
BroadwayShmSurfaceData *data;
if (surface == NULL)
return;
data = cairo_surface_get_user_data (surface, &gdk_broadway_shm_cairo_key);
g_assert (data != NULL);