AlertBar from ShellContent not freed
commit0de18d7bcf171f827559ca10f2574a80a5232ce1
authorMilan Crha <mcrha@redhat.com>
Tue, 11 Jul 2017 17:15:05 +0000 (11 19:15 +0200)
committerMilan Crha <mcrha@redhat.com>
Tue, 11 Jul 2017 17:15:05 +0000 (11 19:15 +0200)
tree8688a28038540b1cc711fb9b6519f858fda4154b
parent11516837ffdf94bb131cfcaca3090aa6495791d4
AlertBar from ShellContent not freed

That was a memory leak, but apart of that it could also cause use-after-free
crash in gtk_widget_get_scale_factor() under _gtk_style_cascade_add_provider()
called from shell_window_constructed(), when creating a new shell window
for the second time, with the previous one already closed.
src/shell/e-shell-content.c