fix indentation
authorTony Cook <tony@develop-help.com>
Wed, 4 Nov 2015 11:06:13 +0000 (22:06 +1100)
committerTony Cook <tony@develop-help.com>
Wed, 4 Nov 2015 11:06:13 +0000 (22:06 +1100)
Imager.xs

index 6803f04..42a94bc 100644 (file)
--- a/Imager.xs
+++ b/Imager.xs
@@ -2674,17 +2674,17 @@ i_get_anonymous_color_histo(im, maxc = 0x40000000)
         int col_cnt;
     PPCODE:
        col_cnt = i_get_anonymous_color_histo(im, &col_usage, maxc);
-    if (col_cnt > 0) {
-        EXTEND(SP, col_cnt);
-        for (i = 0; i < col_cnt; i++)  {
-            PUSHs(sv_2mortal(newSViv( col_usage[i])));
+        if (col_cnt > 0) {
+            EXTEND(SP, col_cnt);
+            for (i = 0; i < col_cnt; i++)  {
+                PUSHs(sv_2mortal(newSViv( col_usage[i])));
+            }
+            myfree(col_usage);
+            XSRETURN(col_cnt);
+        }
+        else {
+            XSRETURN_EMPTY;
         }
-        myfree(col_usage);
-        XSRETURN(col_cnt);
-    }
-    else {
-        XSRETURN_EMPTY;
-    }
 
 
 void