File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ typedef struct _CallbackList {
3333 *
3434 * @param pcbl pointer to the list head (CallbackListPtr)
3535 */
36- _X_EXPORT /* only for GLX module */
3736void DeleteCallbackList (CallbackListPtr * pcbl );
3837
3938#endif /* _XSERVER_CALLBACK_PRIV_H */
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ Bool noGlxExtension = FALSE;
4949
5050ExtensionEntry * GlxExtensionEntry ;
5151int GlxErrorBase = 0 ;
52- static CallbackListPtr vndInitCallbackListPtr = NULL ;
52+ static CallbackListRec vndInitCallbackList ;
53+ static CallbackListPtr vndInitCallbackListPtr = & vndInitCallbackList ;
5354static DevPrivateKeyRec glvXGLVScreenPrivKey ;
5455static DevPrivateKeyRec glvXGLVClientPrivKey ;
5556
@@ -199,7 +200,11 @@ GLXReset(ExtensionEntry *extEntry)
199200 GlxMappingReset ();
200201
201202 if ((dispatchException & DE_TERMINATE ) == DE_TERMINATE ) {
202- DeleteCallbackList (& vndInitCallbackListPtr );
203+ while (vndInitCallbackList .list != NULL ) {
204+ CallbackPtr next = vndInitCallbackList .list -> next ;
205+ free (vndInitCallbackList .list );
206+ vndInitCallbackList .list = next ;
207+ }
203208 }
204209}
205210
You can’t perform that action at this time.
0 commit comments