diff options
-rw-r--r-- | linux.c | 2 | ||||
-rw-r--r-- | macos.c | 2 | ||||
-rw-r--r-- | windows.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -88,7 +88,7 @@ void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, GtkWidget *vbox, GtkUIManager *ui_manager) { if (!divelist_font) - divelist_font = DIVELIST_DEFAULT_FONT; + divelist_font = strdup(DIVELIST_DEFAULT_FONT); gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0); } @@ -116,7 +116,7 @@ void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, GtkWidget *menu_item, *sep; if (!divelist_font) - divelist_font = DIVELIST_MAC_DEFAULT_FONT; + divelist_font = strdup(DIVELIST_MAC_DEFAULT_FONT); g_object_set(G_OBJECT(settings), "gtk-font-name", UI_FONT, NULL); osx_app = g_object_new(GTK_TYPE_OSX_APPLICATION, NULL); @@ -155,7 +155,7 @@ void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, GtkWidget *vbox, GtkUIManager *ui_manager) { if (!divelist_font) - divelist_font = DIVELIST_DEFAULT_FONT; + divelist_font = strdup(DIVELIST_DEFAULT_FONT); gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0); } |