register MaruDisplayChangeListener fini function and clean up some of allocated memory
In order to clean up the mainwindow instance, it is neccessary to modify
Change-Id: I1e15d15b1afba71a21a95a62f8bf01789e6d7ab1
Signed-off-by: hyunjin816.lee <hyunjin816.lee@samsung.com>
void maru_qt5_display_init(MaruDisplayChangeListener *mdcl, int full_screen);
+void maru_qt5_display_quit(void);
#endif /* __MARU_DISPLAY_H__ */
#endif
}
+void maru_qt5_display_quit(void)
+{
+ if (qt5_console) {
+ g_free(qt5_console);
+ qt5_console = NULL;
+ }
+ qt5_destroy();
+}
+
void maru_qt5_display_init(MaruDisplayChangeListener *mdcl, int full_screen)
{
int i;
register_displaychangelistener(&qt5_console[i].dcl);
qt5_console[i].idx = i;
}
+ mdcl->fini = maru_qt5_display_quit;
if (full_screen) {
// TODO
mainwindow->startSwapper();
}
+void qt5_destroy()
+{
+ qDebug("qt5 destroy");
+ delete uiInfo;
+ mainwindow->closeController();
+ /* TODO : destroy mainwindow and qt5App */
+}
+
void qt5_early_prepare(void)
{
Q_INIT_RESOURCE(resource);
int qt5_graphic_hw_display(void);
void qt5_early_prepare(void);
void qt5_prepare(void);
+void qt5_destroy(void);
void qt5_update_internal(void *data, int width, int height);
void qt5_switch_internal(void);