diff options
author | Milan Crha <mcrha@redhat.com> | 2011-12-05 20:27:06 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-12-05 20:27:06 +0800 |
commit | f322d1a3bb3cfda2064d71ed65e30ccf86a812e7 (patch) | |
tree | 858c9c99e9d68a91678795355ab8870b76ff870e /e-util | |
parent | 35e14a8d5f99c67418d670dab56929a368c8b509 (diff) | |
download | gsoc2013-evolution-f322d1a3bb3cfda2064d71ed65e30ccf86a812e7.tar.gz gsoc2013-evolution-f322d1a3bb3cfda2064d71ed65e30ccf86a812e7.tar.zst gsoc2013-evolution-f322d1a3bb3cfda2064d71ed65e30ccf86a812e7.zip |
Bug #665149 - Do not ref window in e_restore_window()
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-util.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index bc163377fb..f21693bc2f 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -74,9 +74,6 @@ struct _WindowData { static void window_data_free (WindowData *data) { - if (data->window != NULL) - g_object_unref (data->window); - if (data->settings != NULL) g_object_unref (data->settings); @@ -341,7 +338,7 @@ e_restore_window (GtkWindow *window, settings = g_settings_new_with_path (schema, settings_path); data = g_slice_new0 (WindowData); - data->window = g_object_ref (window); + data->window = window; data->settings = g_object_ref (settings); data->flags = flags; |