[vlc-commits] messages: remove the stray logger object
Rémi Denis-Courmont
git at videolan.org
Wed Feb 20 16:45:43 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb 19 20:19:21 2019 +0200| [1902a44a1782d7ba456a4c7b7ba01691fc398d07] | committer: Rémi Denis-Courmont
messages: remove the stray logger object
The generic logger structure no longer needs to be a VLC object.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1902a44a1782d7ba456a4c7b7ba01691fc398d07
---
src/misc/messages.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/misc/messages.c b/src/misc/messages.c
index c53e898fa9..35cc414ee4 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -44,7 +44,6 @@
struct vlc_logger_t
{
- struct vlc_common_members obj;
vlc_rwlock_t lock;
const struct vlc_logger_operations *ops;
void *sys;
@@ -403,7 +402,7 @@ void vlc_LogInit(libvlc_int_t *vlc)
*/
int vlc_LogPreinit(libvlc_int_t *vlc)
{
- vlc_logger_t *logger = vlc_custom_create(vlc, sizeof (*logger), "logger");
+ vlc_logger_t *logger = malloc(sizeof (*logger));
if (unlikely(logger == NULL))
return -1;
@@ -442,5 +441,5 @@ void vlc_LogDestroy(vlc_logger_t *logger)
logger->ops->destroy(logger->sys);
vlc_rwlock_destroy(&logger->lock);
- vlc_object_release(logger);
+ free(logger);
}
More information about the vlc-commits
mailing list