Skip to content

Commit

Permalink
Set pointers to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed Dec 30, 2023
1 parent 5b0a9b1 commit 26a1a89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/native_dialog/android_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ bool _al_init_native_dialog_addon(void)
void _al_shutdown_native_dialog_addon(void)
{
al_destroy_mutex(mutex);
mutex = NULL;

/*al_destroy_event_queue(queue);*/ /* already released by Allegro's destructors */
queue = NULL;
}

bool _al_show_native_file_dialog(ALLEGRO_DISPLAY *display, ALLEGRO_NATIVE_DIALOG *fd)
Expand Down

0 comments on commit 26a1a89

Please sign in to comment.