mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
gfile: Fix memory leak in g_file_move()
https://bugzilla.gnome.org/show_bug.cgi?id=729703
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user