diff options
Diffstat (limited to 'widget_gpo.c')
-rw-r--r-- | widget_gpo.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/widget_gpo.c b/widget_gpo.c index 3ac7a4e..2b8ed98 100644 --- a/widget_gpo.c +++ b/widget_gpo.c @@ -106,14 +106,12 @@ int widget_gpo_init(WIDGET * Self) int widget_gpo_quit(WIDGET * Self) { - if (Self) { - if (Self->data) { - WIDGET_GPO *GPO = Self->data; - property_free(&GPO->expression); - property_free(&GPO->update); - free(Self->data); - Self->data = NULL; - } + if (Self && Self->data) { + WIDGET_GPO *GPO = Self->data; + property_free(&GPO->expression); + property_free(&GPO->update); + free(Self->data); + Self->data = NULL; } return 0; } |