Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : apps/e_utils

Dir     : e17/apps/e_utils/src/bin/e17setroot


Modified Files:
        e17setroot.c 


Log Message:
added IF_FREE to Esetroot options in case of multiple (sometimes useles)
arguments. Thanks dj2 and tilman

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17setroot/e17setroot.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e17setroot.c        28 Jan 2005 23:50:56 -0000      1.16
+++ e17setroot.c        29 Jan 2005 18:55:57 -0000      1.17
@@ -67,12 +67,13 @@
        {"noload", 0, 0, E_BG_NO_LOAD},
        {0,        0, 0, 0}
    };
-
+      
    while((c = getopt_long (argc, argv, options, long_options, NULL)) != -1) {
       switch (c) {
         /* tile */
        case E_BG_TILE:    
        case 't':           
+        IF_FREE(esetroot_opt);
         e_bg_type = E_BG_TILE;
         esetroot_opt = strdup(" ");
         break;
@@ -80,6 +81,7 @@
         /* scale */
        case E_BG_SCALE:
        case 's':
+        IF_FREE(esetroot_opt);
         e_bg_type = E_BG_SCALE;
         esetroot_opt = strdup(" -s ");
         break;
@@ -87,6 +89,7 @@
         /* center */
        case E_BG_CENTER:
        case 'c':
+        IF_FREE(esetroot_opt);
         e_bg_type = E_BG_CENTER;
         esetroot_opt = strdup(" -c ");  
         break;
@@ -94,12 +97,14 @@
         /* fit */
        case E_BG_FIT:
        case 'f':
+        IF_FREE(esetroot_opt);
         esetroot_opt = strdup(" -f ");
         break;
 
         /* get current bg */
        case E_BG_GET:
        case 'g':
+        IF_FREE(esetroot_opt);
          e_bg_type = E_BG_GET;
         break;
         




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to