Commit 3676a495 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

Fix segfault on exit (introduced by the new backing store code)



A small typo in a function argument and C compiler happily accepting
void pointers instead of something else is a dangerous combo. Need to
be more careful.
Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent f5501ff1
...@@ -1110,7 +1110,7 @@ FBDevCloseScreen(CLOSE_SCREEN_ARGS_DECL) ...@@ -1110,7 +1110,7 @@ FBDevCloseScreen(CLOSE_SCREEN_ARGS_DECL)
} }
if (fPtr->backing_store_tuner_private) { if (fPtr->backing_store_tuner_private) {
BackingStoreTuner_Close(fPtr->backing_store_tuner_private); BackingStoreTuner_Close(pScreen);
free(fPtr->backing_store_tuner_private); free(fPtr->backing_store_tuner_private);
fPtr->backing_store_tuner_private = NULL; fPtr->backing_store_tuner_private = NULL;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment