Skip to content

Commit

Permalink
[Gtk] Fix double gtk_widget_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Jan 30, 2021
1 parent ae912ab commit 8a2bda7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/backend/gtk3/message_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ impl GtkMessageDialog {
pub fn run(self) -> bool {
let res = unsafe { gtk_sys::gtk_dialog_run(self.ptr) };

unsafe {
gtk_sys::gtk_widget_destroy(self.ptr as *mut _);
super::utils::wait_for_cleanup();
}

res == gtk_sys::GTK_RESPONSE_OK || res == gtk_sys::GTK_RESPONSE_YES
}
}
Expand Down

0 comments on commit 8a2bda7

Please sign in to comment.