mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
fixed memory leak when creating fonts
This commit is contained in:
@@ -12,9 +12,8 @@ cTemplate::cTemplate(eViewType viewType, string pluginName, int viewID) {
|
||||
}
|
||||
|
||||
cTemplate::~cTemplate() {
|
||||
|
||||
if (rootView)
|
||||
delete rootView;
|
||||
if (rootView)
|
||||
delete rootView;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ cTemplateView::cTemplateView(void) {
|
||||
}
|
||||
|
||||
cTemplateView::~cTemplateView() {
|
||||
|
||||
for (map < eViewElement, cTemplateViewElement* >::iterator it = viewElements.begin(); it != viewElements.end(); it++) {
|
||||
delete it->second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user