[gnome-applets/wip/muktupavels/drivemount: 3/3] drivemount: use g_clear_error to free GError
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip/muktupavels/drivemount: 3/3] drivemount: use g_clear_error to free GError
- Date: Mon, 30 Mar 2020 17:15:08 +0000 (UTC)
commit aca32f2b0e08c0e704f72f943ff2881d7e1c0c3f
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Mar 30 20:11:26 2020 +0300
drivemount: use g_clear_error to free GError
gnome-applets/drivemount/drive-button.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome-applets/drivemount/drive-button.c b/gnome-applets/drivemount/drive-button.c
index 256e45572..74191667a 100644
--- a/gnome-applets/drivemount/drive-button.c
+++ b/gnome-applets/drivemount/drive-button.c
@@ -555,7 +555,7 @@ open_drive (DriveButton *self, GtkWidget *item)
g_signal_connect (dialog, "response",
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show (dialog);
- g_error_free (error);
+ g_clear_error (&error);
}
g_object_unref(file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]