[geany/geany-plugins] ff76e0: geanyminiscript: Remove a redundant nullity check in GMS_G_FREE.

Eugene Arshinov git-noreply at xxxxx
Mon Feb 6 20:12:23 UTC 2012


Branch:      refs/heads/master
Author:      Eugene Arshinov <earshinov at gmail.com>
Committer:   Eugene Arshinov <earshinov at gmail.com>
Date:        Mon, 06 Feb 2012 20:12:23
Commit:      ff76e030e0f671fac688b61267be27256e04127b
             https://github.com/geany/geany-plugins/commit/ff76e030e0f671fac688b61267be27256e04127b

Log Message:
-----------
geanyminiscript: Remove a redundant nullity check in GMS_G_FREE.

This is to make cppcheck happy with lines gms_gui.c:579-590


Modified Paths:
--------------
    geanyminiscript/src/gms_debug.h

Modified: geanyminiscript/src/gms_debug.h
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -39,13 +39,13 @@
 #define GMS_G_MALLOC0(t,n)      ((t *) g_malloc0(sizeof(t)*n))
 
 //! \brief Macro to free (glib)
-#define GMS_G_FREE(p)   if ( p != NULL ) { g_free(p) ; p=NULL ; }
+#define GMS_G_FREE(p) { g_free(p); p=NULL; }
 
 //! \brief Macro pour la liberation des PangoFontDescription
-#define GMS_FREE_FONTDESC(p) if ( p != NULL ) { pango_font_description_free (p) ;p=NULL ; }
+#define GMS_FREE_FONTDESC(p) if ( p != NULL ) { pango_font_description_free (p); p=NULL; }
 
 //! \brief Macro for freeing a GtkWidget structure
-#define GMS_FREE_WIDGET(p)   if ( p != NULL ) { gtk_widget_destroy(GTK_WIDGET(p)) ;p=NULL ; }
+#define GMS_FREE_WIDGET(p) if ( p != NULL ) { gtk_widget_destroy(GTK_WIDGET(p)); p=NULL; }
 
 
 #ifdef GMS_DEBUG



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list