[gthumb/gthumb-3-6] preferences: fixed crash when setting the current location as default



commit 5a28d6153ac7f350fc2e0ace586ba2a2a4807663
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Sep 20 11:47:31 2018 +0200

    preferences: fixed crash when setting the current location as default

 gthumb/dlg-preferences-general.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gthumb/dlg-preferences-general.c b/gthumb/dlg-preferences-general.c
index fd83500b..e71a09ba 100644
--- a/gthumb/dlg-preferences-general.c
+++ b/gthumb/dlg-preferences-general.c
@@ -52,6 +52,7 @@ browser_data_free (BrowserData *data)
        g_object_unref (data->browser_settings);
        g_object_unref (data->messages_settings);
        g_object_unref (data->builder);
+       g_object_unref (data->browser);
        g_free (data);
 }
 
@@ -137,6 +138,7 @@ general__dlg_preferences_construct_cb (GtkWidget  *dialog,
        GthFileSource *file_source;
 
        data = g_new0 (BrowserData, 1);
+       data->browser = g_object_ref (browser);
        data->builder = g_object_ref (dialog_builder);
        data->general_settings = g_settings_new (GTHUMB_GENERAL_SCHEMA);
        data->browser_settings = g_settings_new (GTHUMB_BROWSER_SCHEMA);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]