Package: gtkboard
Version: 0.11pre0+cvs.2003.11.02-7
Followup-For: Bug #820595
Dear Maintainer,
I experimented the first problem when selecting new games.
I found that a wring index is used to set a pointer to NULL:
--- a/src/menu.c
+++ b/src/menu.c
@@ -810,8 +810,13 @@ void menu_insert_recent_game (gchar *gam
if (tmpname)
{
GtkWidget *wid;
- gtk_widget_destroy (menu_recent_widgets[i == NUM_RECENT_GAMES ?
i -
1 : i]);
- menu_recent_widgets[i] = NULL;
+ if (i == NUM_RECENT_GAMES) {
+ j = i - 1;
+ } else {
+ j = i;
+ }
+ gtk_widget_destroy (menu_recent_widgets[j]);
+ menu_recent_widgets[j] = NULL;
gtk_item_factory_delete_item (menu_factory, tmp =
g_strdup_printf
("/Game/%s", tmpname));
g_free (tmp);
}
Best Regards,
Greg
-- System Information:
Debian Release: 8.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gtkboard depends on:
ii libatk1.0-0 2.14.0-1
ii libc6 2.19-18+deb8u4
ii libcairo2 1.14.0-2.1+deb8u1
ii libfontconfig1 2.11.0-6.3
ii libfreetype6 2.5.2-3+deb8u1
ii libgdk-pixbuf2.0-0 2.31.1-2+deb8u5
ii libglib2.0-0 2.42.1-1+b1
ii libgtk2.0-0 2.24.25-3+deb8u1
ii libpango-1.0-0 1.36.8-3
ii libpangocairo-1.0-0 1.36.8-3
ii libpangoft2-1.0-0 1.36.8-3
ii libsdl-mixer1.2 1.2.12-11+b1
ii libsdl1.2debian 1.2.15-10+b1
gtkboard recommends no packages.
gtkboard suggests no packages.
-- no debconf information