--- /dev/null
+--- orig/TraceToolkit-0.9.5/Visualizer/MainWindow.c 2002-04-15 19:23:49.000000000 -0700\r
++++ TraceToolkit-0.9.5/Visualizer/MainWindow.c 2006-04-05 16:04:47.000000000 -0700\r
+@@ -28,6 +28,7 @@\r
+ #include <string.h>\r
+ #include <fcntl.h>\r
+ #include <unistd.h>\r
++#include <stdlib.h>\r
+ #include <sys/stat.h>\r
+ #include <gdk/gdkkeysyms.h>\r
+ \r
+@@ -3146,8 +3147,10 @@\r
+ \r
+ /* FORCEFULLY disconnect event handlers from the notebook widget */\r
+ /* I didn't find any cleaner way to do this. K.Y. 9/5/2000 */\r
+- GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->key_press_event) = NULL,\r
+- GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->focus_in_event) = NULL,\r
++ gtk_type_free(GTK_TYPE_SIGNAL, \r
++ GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->key_press_event));\r
++ gtk_type_free(GTK_TYPE_SIGNAL,\r
++ GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->focus_in_event));\r
+ \r
+ /* Connect the key press event */\r
+ gtk_signal_connect(GTK_OBJECT(pmSysView->Window->MWindow),\r