Fix a few minor leaks (or just memory showing up as not freed in tools)
This commit is contained in:
parent
2157ebb614
commit
7f9af9016d
4 changed files with 28 additions and 5 deletions
14
src/main.cpp
14
src/main.cpp
|
|
@ -37,9 +37,11 @@
|
|||
#include "notifications/Manager.h"
|
||||
#endif
|
||||
|
||||
#if defined(GSTREAMER_AVAILABLE) && (defined(Q_OS_MAC) || defined(Q_OS_WINDOWS))
|
||||
#ifdef GSTREAMER_AVAILABLE
|
||||
#include <QAbstractEventDispatcher>
|
||||
#include <gst/gst.h>
|
||||
|
||||
#include "voip/CallDevices.h"
|
||||
#endif
|
||||
|
||||
#ifdef QML_DEBUGGING
|
||||
|
|
@ -399,5 +401,13 @@ main(int argc, char *argv[])
|
|||
|
||||
nhlog::ui()->info("starting nheko {}", nheko::version);
|
||||
|
||||
return app.exec();
|
||||
auto returnvalue = app.exec();
|
||||
|
||||
#ifdef GSTREAMER_AVAILABLE
|
||||
CallDevices::instance().deinit();
|
||||
|
||||
gst_deinit();
|
||||
#endif
|
||||
|
||||
return returnvalue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue