snapshot: Don't use extra after it's been freed (CID #220086)
commit1c3ecfac133e5f284934fef9af988405e24347da
authorBryce Harrington <bryce@bryceharrington.org>
Wed, 6 Jun 2018 18:06:18 +0000 (6 11:06 -0700)
committerBryce Harrington <bryce@bryceharrington.org>
Wed, 13 Jun 2018 22:21:50 +0000 (13 15:21 -0700)
treef5a92b5cc3952896655b68d1bf530e06cf11df01
parent37655af38d320336fe00894dbc2e47d16ea58497
snapshot: Don't use extra after it's been freed (CID #220086)

Note this changes the semantics of the value of extra_out such that it
is set to NULL instead of left undefined in case an error is returned.

Coverity ID: 220086
Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
Reviewed-By: Uli Schlachter <psychon@znc.in>
src/cairo-surface-snapshot.c