[gnome-builder] gb-vim : no need to test existence before g_free



commit fbbbd0edd6d2d57a69a86c4b0c652a89be2ed283
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Wed Apr 29 23:37:06 2015 +0200

    gb-vim : no need to test existence before g_free
    
    g_free support NULL as parameter.

 src/vim/gb-vim.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/vim/gb-vim.c b/src/vim/gb-vim.c
index 073f39a..ae60375 100644
--- a/src/vim/gb-vim.c
+++ b/src/vim/gb-vim.c
@@ -995,8 +995,7 @@ gb_vim_execute (GtkSourceView  *source_view,
     all_options = g_strdup (options);
 
   result = command->func (source_view, command_name, all_options, error);
-  if (command->options_sup)
-    g_free (command->options_sup);
+  g_free (command->options_sup);
 
   return result;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]