Skip to content

Commit

Permalink
Important fix for memory leaks issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed May 6, 2022
1 parent 7a137d8 commit 50ff080
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
},
"frameworks": "arduino",
"platforms": ["espressif8266", "espressif32","teensy", "atmelsam","ststm32","atmelavr","atmelmegaavr","raspberrypi"],
"version": "2.7.0"
"version": "3.0.0"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=FirebaseJson

version=2.7.0
version=3.0.0

author=Mobizt

Expand Down
4 changes: 2 additions & 2 deletions src/FirebaseJson.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 2.7.0
* FirebaseJson, version 3.0.0
*
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
*
* Created May 4, 2022
* Created May 6, 2022
*
* Features
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")
Expand Down
7 changes: 5 additions & 2 deletions src/FirebaseJson.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 2.7.0
* FirebaseJson, version 3.0.0
*
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
*
* Created May 4, 2022
* Created May 6, 2022
*
* Features
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")
Expand Down Expand Up @@ -2421,6 +2421,7 @@ class FirebaseJson : public FirebaseJsonBase
{
uint32_t addr = 0;
dataHandler(getStr(key, addr), value, fb_json_func_type_add);
delAddr(addr);
return *this;
}

Expand All @@ -2429,6 +2430,7 @@ class FirebaseJson : public FirebaseJsonBase
{
uint32_t addr = 0;
dataHandler(getStr(key, addr), value, fb_json_func_type_add);
delAddr(addr);
return *this;
}

Expand All @@ -2437,6 +2439,7 @@ class FirebaseJson : public FirebaseJsonBase
{
uint32_t addr = 0;
dataHandler(getStr(key, addr), value, fb_json_func_type_add);
delAddr(addr);
return *this;
}

Expand Down

0 comments on commit 50ff080

Please sign in to comment.