Mercurial > repos > blastem
comparison nuklear_ui/blastem_nuklear.c @ 2312:3f2ecd156453
Fix use after free when re-entering controller binding UI after saving bindings
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 29 Mar 2023 22:40:05 -0700 |
parents | 07aeea6cb068 |
children | ef5dc4d02d27 |
comparison
equal
deleted
inserted
replaced
2311:07aeea6cb068 | 2312:3f2ecd156453 |
---|---|
999 | 999 |
1000 free(pad_key); | 1000 free(pad_key); |
1001 if (dest == SIMILAR_CONTROLLERS) { | 1001 if (dest == SIMILAR_CONTROLLERS) { |
1002 free(key); | 1002 free(key); |
1003 } | 1003 } |
1004 free(bindings); | |
1005 bindings = NULL; | |
1004 pop_view(); | 1006 pop_view(); |
1005 config_dirty = 1; | 1007 config_dirty = 1; |
1006 } | 1008 } |
1007 | 1009 |
1008 void view_select_binding_dest(struct nk_context *context) | 1010 void view_select_binding_dest(struct nk_context *context) |