projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d0c12cb
)
tests: capi - buffer was not freed
author
Mira Grudzinska
<m.grudzinska@samsung.com>
Sun, 7 Nov 2021 23:36:47 +0000
(
00:36
+0100)
committer
JunsuChoi
<jsuya.choi@samsung.com>
Mon, 8 Nov 2021 09:01:54 +0000
(18:01 +0900)
test/capi/capiSwCanvas.cpp
patch
|
blob
|
history
diff --git
a/test/capi/capiSwCanvas.cpp
b/test/capi/capiSwCanvas.cpp
index
65fb8db
..
2a39eb1
100644
(file)
--- a/
test/capi/capiSwCanvas.cpp
+++ b/
test/capi/capiSwCanvas.cpp
@@
-81,6
+81,8
@@
TEST_CASE("Canvas initialization", "[capiSwCanvas]")
REQUIRE(tvg_canvas_destroy(canvas) == TVG_RESULT_SUCCESS);
REQUIRE(tvg_engine_term(TVG_ENGINE_SW) == TVG_RESULT_SUCCESS);
+
+ free(buffer);
}
TEST_CASE("Canvas draw", "[capiSwCanvas]")
@@
-124,6
+126,8
@@
TEST_CASE("Canvas draw", "[capiSwCanvas]")
REQUIRE(tvg_canvas_destroy(canvas) == TVG_RESULT_SUCCESS);
REQUIRE(tvg_engine_term(TVG_ENGINE_SW) == TVG_RESULT_SUCCESS);
+
+ free(buffer);
}
TEST_CASE("Canvas update, clear and reuse", "[capiSwCanvas]")