skia2/experimental
Petar Kirov 1ff585637a Fix small memory leak in c-api example
While working on creating bindings for dlang, I noticed that there was a
missing call to `sk_imageinfo_delete`, corresponding to the call to
`sk_imageinfo_new` in the c-api example. At first I thought that
`sk_surface_new_raster` (or something else) would free the image info
object internally, but after checking the implementation I saw this was
not the case.

This can be trivially verified with valgrind:

Before this change:
    $ valgrind ./skia-c-example 2>&1 | grep 'definitely lost'
    ==186215==    definitely lost: 24 bytes in 1 blocks

After:
    $ valgrind ./skia-c-example 2>&1 | grep 'definitely lost'
    ==185878==    definitely lost: 0 bytes in 0 blocks

Test: built and ran skia-c-example.c under valgrind
Change-Id: Ie3fba2e7602341d2f5e7dac198b3ec5923777cbd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260021
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2019-12-16 16:03:04 +00:00
..
c-api-example Fix small memory leak in c-api example 2019-12-16 16:03:04 +00:00
docs
documentation experimental/tools/gerrit_percent_encode 2019-08-05 16:11:45 +00:00
ffmpeg [SkVideoEncoder] Allow clients to control the color type 2019-10-10 14:55:31 +00:00
minimal_ios_mtl_skia_app Reland "Minimal iOS app: Perform present subsequent to flush" 2019-10-14 18:32:37 +00:00
Networking rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
pvg add pvg experiment 2018-11-02 15:35:21 +00:00
skottie_ios BUILD.gn: Fix formatting. 2019-12-12 18:03:46 +00:00
svg/model Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
tools experimental/tools/pdf-comparison: delete worktree when it gets into a bad state 2019-10-01 14:07:54 +00:00
wasm-skp-debugger Remove an uncessary and unused parameter for partially generating the JSON command list 2019-12-13 19:30:03 +00:00
xform Move a bunch of gpu files out of include/private and into src/gpu. 2019-06-18 14:24:42 +00:00
xps_to_png