From 4539dca7e9317ea1ec022aa37ae84834217c5ac3 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 26 Nov 2020 11:43:19 +0100 Subject: Use g_clear_error --- plugins/filebrowser/pluma-file-browser-widget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/filebrowser/pluma-file-browser-widget.c b/plugins/filebrowser/pluma-file-browser-widget.c index 7d41e74c..5056999b 100644 --- a/plugins/filebrowser/pluma-file-browser-widget.c +++ b/plugins/filebrowser/pluma-file-browser-widget.c @@ -2459,8 +2459,7 @@ directory_open (PlumaFileBrowserWidget *obj, PLUMA_FILE_BROWSER_ERROR_OPEN_DIRECTORY, error->message); - g_error_free (error); - error = NULL; + g_clear_error (&error); } } -- cgit v1.2.1