background: Don't access possibly invalid object

The previous value of CURRENT_BG may not be valid after a call to
update_preview.

https://bugzilla.gnome.org/show_bug.cgi?id=707569
This commit is contained in:
Debarshi Ray 2013-09-06 17:51:58 +02:00
parent ffa6d77ce9
commit cc17b9d471

View file

@ -596,6 +596,7 @@ copy_finished_cb (GObject *source_object,
char *filename;
update_preview (priv, settings, item);
current_background = CURRENT_BG;
/* Save the source XML if there is one */
filename = get_save_path (SAVE_PATH);