Bug 797550 - Crash when changing register tab position

Check for a valid GNC_MAIN_WINDOW being passed to
gnc_main_window_update_tab_position before trying to update tabs
This commit is contained in:
Robert Fewell 2020-01-09 14:59:53 +00:00
parent 5bfef54d6d
commit c8eb3b3738

View File

@ -3285,6 +3285,8 @@ gnc_main_window_update_tab_position (gpointer prefs, gchar *pref, gpointer user_
GtkPositionType position = GTK_POS_TOP;
GncMainWindowPrivate *priv;
g_return_if_fail (GNC_IS_MAIN_WINDOW(user_data));
window = GNC_MAIN_WINDOW(user_data);
ENTER ("window %p", window);