mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 13:10:42 +01:00
Linux: Fix crash when closing popup after printing (issue #2422)
This commit is contained in:
parent
4315f3b724
commit
87e33b1692
@ -513,7 +513,11 @@ struct ClientPrintHandlerGtk::PrintHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OnJobCompleted(GtkPrintJob* print_job, GError* error) {
|
void OnJobCompleted(GtkPrintJob* print_job, GError* error) {
|
||||||
job_callback_->Continue();
|
// Continue() will result in a call to ClientPrintHandlerGtk::OnPrintReset
|
||||||
|
// which deletes |this|. Execute it asnychronously so the call stack has a
|
||||||
|
// chance to unwind.
|
||||||
|
CefPostTask(TID_UI, base::Bind(&CefPrintJobCallback::Continue,
|
||||||
|
job_callback_.get()));
|
||||||
job_callback_ = NULL;
|
job_callback_ = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user