fixed segfault when exiting the easteregg program when it is still running
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@96 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
b53e2abf5b
commit
35709ba043
4
src/gb.c
4
src/gb.c
@ -1268,11 +1268,11 @@ void init_images(void)
|
||||
// zentrale exit-Funktion
|
||||
gint gb_destroyapp(GtkWidget *widget, gpointer gdata)
|
||||
{
|
||||
if (is_running) return 0;
|
||||
if (is_running) return TRUE;
|
||||
if (GTK_IS_WINDOW(gb_window)) gtk_widget_destroy(gb_window);
|
||||
if (random_fd != -1) close(random_fd);
|
||||
gb_window = NULL;
|
||||
return (FALSE);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user