Skip to content

Commit

Permalink
gx_create_window error cleanup fix
Browse files Browse the repository at this point in the history
In the event of an error the cleanup code for gx_create_window() was cleaning up things that hadn't happened and crashing.
  • Loading branch information
piense authored and popcornmix committed Jan 29, 2018
1 parent e9e90c6 commit ff2eac3
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ VCOS_STATUS_T gx_create_window( uint32_t screen_id,
gx_priv_destroy_native_window(h);
fail_create_native_win:
vcos_free(h);
gx_priv_restore(&save);
return status;
}

Expand Down

0 comments on commit ff2eac3

Please sign in to comment.