mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-06 04:40:05 +02: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);
|
g_propagate_error (error, my_error);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
g_clear_error (&my_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the types are different, and the destination method failed
|
/* 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);
|
g_propagate_error (error, my_error);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
g_clear_error (&my_error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user