aboutsummaryrefslogtreecommitdiffstats
path: root/widget_gpo.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-01-20 14:05:38 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-01-20 14:05:38 +0000
commitebab52f8e03782cf34b9c5e89c1591b66572dff9 (patch)
treef5f6272ef32781ad78a14887c7540a32b19b26fe /widget_gpo.c
parent812fa726f6b3f9f473e60d29d23eaabbf741d3cc (diff)
downloadlcd4linux-ebab52f8e03782cf34b9c5e89c1591b66572dff9.tar.gz
keypad widget cleanup
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@752 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_gpo.c')
-rw-r--r--widget_gpo.c14
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;
}