From b36adca2d1913cf93a280b336fb3e0ca5984215e Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 3 Sep 2014 09:45:56 +0400 Subject: [PATCH] Ticket #3265: code cleanup before 4.8.14 release. Use MC_PTR_FREE again. Signed-off-by: Andrew Borodin --- src/filemanager/find.c | 3 +-- src/viewer/lib.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/filemanager/find.c b/src/filemanager/find.c index 6f718088b..c5853a06f 100644 --- a/src/filemanager/find.c +++ b/src/filemanager/find.c @@ -249,8 +249,7 @@ parse_ignore_dirs (const char *ignore_dirs) if (find_ignore_dirs[r][0] == '\0') { /* empty entry -- skip it */ - g_free (find_ignore_dirs[r]); - find_ignore_dirs[r] = NULL; + MC_PTR_FREE (find_ignore_dirs[r]); continue; } diff --git a/src/viewer/lib.c b/src/viewer/lib.c index fea008dfd..740623aa2 100644 --- a/src/viewer/lib.c +++ b/src/viewer/lib.c @@ -242,8 +242,7 @@ mcview_done (mcview_t * view) mc_search_free (view->search); view->search = NULL; - g_free (view->last_search_string); - view->last_search_string = NULL; + MC_PTR_FREE (view->last_search_string); mcview_nroff_seq_free (&view->search_nroff_seq); mcview_hexedit_free_change_list (view);