Projekt

Allgemein

Profil

Bug #35 » gwen-memleaks.txt

thbe, 07.08.2019 07:39

 
------------------------ plugins/configmgr/dir/cfgdir.c ------------------------
index fc69085..2a540d5 100644
@@ -553,6 +553,7 @@ int GWEN_ConfigMgrDir_HasGroup(GWEN_CONFIGMGR *cfg,
return rv;
}

+ GWEN_Buffer_free(nbuf);
return 0;
}


----------------------------- src/gui/dlg_input.c -----------------------------
index 72beac0..a942802 100644
@@ -139,7 +139,8 @@ void GWENHYWFAR_CB GWEN_DlgInput_FreeData(void *bp, void *p)
xdlg=(GWEN_DLGINPUT *) p;

if (xdlg->response) {
- memset(xdlg->response, 0, strlen(xdlg->response));
+ //memset(xdlg->response, 0, strlen(xdlg->response));
+ free(xdlg->response);
xdlg->response=NULL;
}
free(xdlg->title);
@@ -239,7 +240,8 @@ void GWEN_DlgInput_Fini(GWEN_DIALOG *dlg)
assert(dbParams);

if (xdlg->response) {
- memset(xdlg->response, 0, strlen(xdlg->response));
+ //memset(xdlg->response, 0, strlen(xdlg->response));
+ free(xdlg->response);
xdlg->response=NULL;
}


---------------------------- src/gui/dlg_progress.c ----------------------------
index 6570aee..2840e1a 100644
@@ -334,6 +334,8 @@ void GWEN_DlgProgress_AddLogText(GWEN_DIALOG *dlg,
GWEN_Dialog_SetCharProperty(dlg, "logText", GWEN_DialogProperty_Value, 0,
GWEN_Buffer_GetStart(tbuf), 0);
GWEN_Buffer_free(tbuf);
+ if(ti)
+ GWEN_Time_free(ti);
}



------------------------------- src/gui/widget.c -------------------------------
index 82ab083..6d95e83 100644
@@ -584,6 +584,8 @@ uint32_t GWEN_Widget_Flags_fromString(const char *s)
else if (strcasecmp(wstart, "noWordWrap")==0)
fl|=GWEN_WIDGET_FLAGS_NO_WORDWRAP;
}
+ if(copy)
+ free(copy);
}

return fl;
(2-2/7)