Merge pull request #310 from npes87184/master

fix text memory leak
This commit is contained in:
Romain Vimont 2018-10-27 14:49:00 +02:00 committed by GitHub
commit facbbced9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,6 +144,7 @@ void input_manager_process_text_input(struct input_manager *input_manager,
return;
}
if (!controller_push_event(input_manager->controller, &control_event)) {
SDL_free(control_event.text_event.text);
LOGW("Cannot send text event");
}
}