mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-22 18:15:49 +01:00
- Replaced all free() with wfree() where appropriate
- Fixed some memory leaks
This commit is contained in:
@@ -87,7 +87,7 @@ void
|
||||
WMUnregisterViewDraggedTypes(WMView *view)
|
||||
{
|
||||
if (view->droppableTypes != NULL)
|
||||
free(view->droppableTypes);
|
||||
wfree(view->droppableTypes);
|
||||
view->droppableTypes = NULL;
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ void
|
||||
WMSetViewDragDestinationProcs(WMView *view, WMDragDestinationProcs *procs)
|
||||
{
|
||||
if (view->dragDestinationProcs == NULL) {
|
||||
free(view->dragDestinationProcs);
|
||||
wfree(view->dragDestinationProcs);
|
||||
view->dragDestinationProcs = wmalloc(sizeof(WMDragDestinationProcs));
|
||||
}
|
||||
*view->dragDestinationProcs = *procs;
|
||||
|
||||
Reference in New Issue
Block a user