summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-23 17:07:49 -0700
committerKeith Packard <keithp@keithp.com>2011-03-23 17:14:12 -0700
commit86f23f21ab57fcbc031bcd2b8f432a08ff4cc320 (patch)
tree859bdf9fda5e8f7e948046c14e2510112f662a64
parente1ff5182304e00c0d392092069422cae7626cf8d (diff)
Skip client and drawable resource delete calls when deleting frame event
As the frame_event is about to be freed, there's no point in cleaning up references to the drawable and client. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/intel_dri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_dri.c b/src/intel_dri.c
index f039e9db..3b808230 100644
--- a/src/intel_dri.c
+++ b/src/intel_dri.c
@@ -635,9 +635,9 @@ static void
i830_dri2_del_frame_event(DRI2FrameEventPtr frame_event)
{
if (frame_event->client_id)
- FreeResourceByType(frame_event->client_id, frame_event_client_type, FALSE);
+ FreeResourceByType(frame_event->client_id, frame_event_client_type, TRUE);
if (frame_event->drawable_id)
- FreeResourceByType(frame_event->drawable_id, frame_event_drawable_type, FALSE);
+ FreeResourceByType(frame_event->drawable_id, frame_event_drawable_type, TRUE);
}
static void