summaryrefslogtreecommitdiffstats
path: root/binding/media-manager.h
diff options
context:
space:
mode:
authorFarshid Monhaseri <monhaseri.f@gmail.com>2020-01-22 19:19:16 +0330
committerMatt Ranostay <matt.ranostay@konsulko.com>2020-02-12 15:29:52 -0800
commitc07b257e09a2cfbaeef8b0aaaf0355621c4186e8 (patch)
treef30ee50b0a64b5494f4eb9d5246337616b7eb4ec /binding/media-manager.h
parentca519329c0cc04607286cebcdb0b7b304473ff96 (diff)
mediascanner: fix the service memory leakageshalibut_8.0.6halibut/8.0.68.0.6halibut
Bug-AGL: SPEC-3103 - fix memory leakage in 'media_results_get' callback function which is called by 'media_result' verb. Set free-full the whole list with 'free_media_item' callback function(major leak). - fix memory leakage in 'MediaPlayerManagerInit' function, file object is not released(minor leak). - fix memory leakage in 'media_lightmediascanner_scan' function and avoid open sqlite3 connection and allocate whole sqlite resources again and again on every function execution (major leak). - fix memory leakage in 'on_interface_proxy_properties_changed' when iterating over 'changed_properties' and not release key & subValues. Signed-off-by: Farshid Monhaseri <monhaseri.f@gmail.com> Change-Id: I943a961b0c13be79c70c80e7a4f558958551f800
Diffstat (limited to 'binding/media-manager.h')
-rw-r--r--binding/media-manager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/binding/media-manager.h b/binding/media-manager.h
index 4b381dc..81a0e20 100644
--- a/binding/media-manager.h
+++ b/binding/media-manager.h
@@ -102,6 +102,7 @@ typedef struct {
gchar *uri_filter;
GMutex m;
Scanner1 *lms_proxy;
+ GFileMonitor *mon;
} stMediaPlayerManage;
typedef struct tagBinding_RegisterCallback
@@ -111,6 +112,7 @@ typedef struct tagBinding_RegisterCallback
} Binding_RegisterCallback_t;
/* ------ PUBLIC PLUGIN FUNCTIONS --------- */
+void free_media_item(void *data);
void BindingAPIRegister(const Binding_RegisterCallback_t* pstRegisterCallback);
int MediaPlayerManagerInit(void);