Chromium Code Reviews| Index: chrome/browser/gtk/tabs/tab_strip_gtk.cc |
| =================================================================== |
| --- chrome/browser/gtk/tabs/tab_strip_gtk.cc (revision 21211) |
| +++ chrome/browser/gtk/tabs/tab_strip_gtk.cc (working copy) |
| @@ -829,7 +829,10 @@ |
| } |
| gtk_container_remove(GTK_CONTAINER(tabstrip_.get()), tab->widget()); |
| - delete tab; |
| + // If we delete the dragged source tab here, the gtk drag-n-drop API won't |
| + // get a change to clean up and remove any references it's added to the tab |
| + // widget, so we'll leak the widget. |
| + MessageLoop::current()->DeleteSoon(FROM_HERE, tab); |
|
tony
2009/07/21 22:55:44
You're sure that the gtk d&d api will get to run b
|
| // Force a layout here, because if we've just quickly drag detached a Tab, |
| // the stopping of the active animation above may have left the TabStrip in a |