Kaydet (Commit) 35709ba0 authored tarafından Enrico Tröger's avatar Enrico Tröger

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
üst b53e2abf
...@@ -1268,11 +1268,11 @@ void init_images(void) ...@@ -1268,11 +1268,11 @@ void init_images(void)
// zentrale exit-Funktion // zentrale exit-Funktion
gint gb_destroyapp(GtkWidget *widget, gpointer gdata) 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 (GTK_IS_WINDOW(gb_window)) gtk_widget_destroy(gb_window);
if (random_fd != -1) close(random_fd); if (random_fd != -1) close(random_fd);
gb_window = NULL; gb_window = NULL;
return (FALSE); return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment