ecere/sys/JSON: Fixed leak with color strings
authorJerome St-Louis <jerome@ecere.com>
Thu, 21 Apr 2016 08:14:14 +0000 (04:14 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 21:35:19 +0000 (17:35 -0400)
ecere/src/sys/JSON.ec

index e076c82..592a840 100644 (file)
@@ -78,6 +78,7 @@ public:
             else if(type && eClass_IsDerived(type, class(ColorAlpha)))
             {
                result = GetColorAlpha(string, value);
+               delete string;
             }
             else if(type && (type.type == structClass))
             {