mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gfile: Fix memory leak in g_file_move()
https://bugzilla.gnome.org/show_bug.cgi?id=729703
This commit is contained in:
parent
e15ba53cda
commit
03b510fde1
@ -3552,6 +3552,8 @@ g_file_move (GFile *source,
|
||||
g_propagate_error (error, my_error);
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
g_clear_error (&my_error);
|
||||
}
|
||||
|
||||
/* If the types are different, and the destination method failed
|
||||
@ -3577,6 +3579,8 @@ g_file_move (GFile *source,
|
||||
g_propagate_error (error, my_error);
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
g_clear_error (&my_error);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user