GNOME Bugzilla – Bug 592742
Avoid accessing freed memory when being replaced
Last modified: 2009-08-24 18:30:08 UTC
If we are replaced via the window manager selection, then we close the MetaDisplay before meta_finalize() runs. We should be careful not to try to close the display again (and access already freed memory) in that case, so clear the global 'the_display' variable. See Metacity bug http://bugzilla.gnome.org/show_bug.cgi?id=588119
Created attachment 141448 [details] [review] Avoid accessing freed memory when being replaced
i'm guessing bug 591171 is a dup of this?
If gnome-shell is segfaulting when replaced, it might well be this issue, but I think bug 591171 is more about two other things: * gnome-shell shouldn't try to respawn metacity if it gets replaced * It would be nice if gnome-shell respawned the gnome-shell it replaced to help developing gnome-shell under gnome-shell.
Comment on attachment 141448 [details] [review] Avoid accessing freed memory when being replaced Looks good, please commit.
Pushed