slightly nicer code flow.
authorCarsten Haitzler <raster@rasterman.com>
Sat, 20 Aug 2011 05:11:38 +0000 (05:11 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sat, 20 Aug 2011 05:11:38 +0000 (05:11 +0000)
SVN revision: 62621

src/modules/wizard/page_020.c

index 7316750..c69cfeb 100644 (file)
@@ -22,10 +22,12 @@ _profile_change(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
    snprintf(buf, sizeof(buf), "%s/profile.desktop", dir);
    desk = efreet_desktop_new(buf);
    if (desk)
-     e_widget_textblock_markup_set(textblock, desk->comment);
+     {
+        e_widget_textblock_markup_set(textblock, desk->comment);
+        efreet_desktop_free(desk);
+     }
    else
      e_widget_textblock_markup_set(textblock, _("Unknown"));
-   if (desk) efreet_desktop_free(desk);
 
    // enable next once you choose a profile
    e_wizard_button_next_enable_set(1);