From de18703d2a25999e391d11b4c82ee018fb87372d Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Thu, 3 Jan 2008 23:07:24 -0500 Subject: dix: Fix bug+leak in callback manager DeleteCallbackList function. --- dix/dixutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dix/dixutils.c') diff --git a/dix/dixutils.c b/dix/dixutils.c index 786f4e335..dd485d518 100644 --- a/dix/dixutils.c +++ b/dix/dixutils.c @@ -800,7 +800,7 @@ _DeleteCallbackList( for (i = 0; i < numCallbackListsToCleanup; i++) { - if ((listsToCleanup[i] = pcbl) != 0) + if (listsToCleanup[i] == pcbl) { listsToCleanup[i] = NULL; break; -- cgit v1.2.3