diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-12 11:50:24 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-12 11:51:58 +0100 |
commit | 644b1a903301531e1fb59f27952c15e87888c4c6 (patch) | |
tree | db3dd1313da2d5c95a146146f8fd52c1d70a894a /src/intel_dri.c | |
parent | 32f42358140ee812984149ae52b0df3dfd1778c3 (diff) |
dri: Always initialise resource members of DRI2FrameEvent
As we now attempt to always decouple the lists upon freeing the frame
event, we need to initialise them along all code paths.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_dri.c')
-rw-r--r-- | src/intel_dri.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel_dri.c b/src/intel_dri.c index 0b284524..5ea7c2ca 100644 --- a/src/intel_dri.c +++ b/src/intel_dri.c @@ -1336,6 +1336,12 @@ I830DRI2ScheduleWaitMSC(ClientPtr client, DrawablePtr draw, CARD64 target_msc, wait_info->client = client; wait_info->type = DRI2_WAITMSC; + if (!i830_dri2_add_frame_event(wait_info)) { + free(wait_info); + wait_info = NULL; + goto out_complete; + } + /* Get current count */ vbl.request.type = DRM_VBLANK_RELATIVE; if (pipe > 0) |