Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
lensfun
lensfun_fix_memory_leak.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lensfun_fix_memory_leak.patch of Package lensfun
commit 3226f7589f476b291e8baad2fcf3593db6f14cf9 Author: Sebastian Kraft <mail@sebastiankraft.net> AuthorDate: Sat Jul 22 19:34:34 2017 +0200 Commit: Sebastian Kraft <mail@sebastiankraft.net> CommitDate: Sat Jul 22 19:34:34 2017 +0200 Add a virtual destructor to lfCallbackData to avoid memory leak in derived classes --- include/lensfun/lensfun.h.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/lensfun/lensfun.h.in b/include/lensfun/lensfun.h.in index ee9cf41..ec87b3c 100644 --- a/include/lensfun/lensfun.h.in +++ b/include/lensfun/lensfun.h.in @@ -1909,18 +1909,22 @@ typedef void (*lfModifyColorFunc) (void *data, float x, float y, typedef void (*lfModifyCoordFunc) (void *data, float *iocoord, int count); // @cond - +#ifdef __cplusplus + /// Common ancestor for lfCoordCallbackData and lfColorCallbackData struct lfCallbackData { int priority; void *data; size_t data_size; + + virtual ~lfCallbackData() {}; }; // A test point in the autoscale algorithm typedef struct { float angle, dist; } lfPoint; +#endif // @endcond /**
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor