mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 01:59:56 +00:00
Initialize dev privates before using any
Initializing the dev privates code after allocating the server client dev privates would cause the memory leak check to fire at server startup or reset. Signed-off-by: Keith Packard <keithp@keithp.com> Acked-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
@@ -184,6 +184,9 @@ int main(int argc, char *argv[], char *envp[])
|
||||
clients[0] = serverClient;
|
||||
currentMaxClients = 1;
|
||||
|
||||
/* Initialize privates before first allocation */
|
||||
dixResetPrivates();
|
||||
|
||||
/* Initialize server client devPrivates, to be reallocated as
|
||||
* more client privates are registered
|
||||
*/
|
||||
@@ -200,7 +203,6 @@ int main(int argc, char *argv[], char *envp[])
|
||||
InitEvents();
|
||||
InitSelections();
|
||||
InitGlyphCaching();
|
||||
dixResetPrivates();
|
||||
dixResetRegistry();
|
||||
ResetFontPrivateIndex();
|
||||
InitCallbackManager();
|
||||
|
||||
Reference in New Issue
Block a user