mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-01 11:32:34 +01:00
destroy func must has the arguments to consider the right destroy sub-func.
This commit is contained in:
@@ -126,7 +126,7 @@ wPluginDestroyFunction(WFunction *function)
|
||||
|
||||
if (function->data) {
|
||||
if (function->freeData) {
|
||||
function->freeData(&function->data);
|
||||
function->freeData(function->arg, &function->data);
|
||||
} else {
|
||||
wfree(function->data);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ typedef void _DL_AnyProc(proplist_t);
|
||||
typedef void _DL_DrawStringProc(proplist_t, Drawable, GC, WMFont *, int, int, unsigned, unsigned, char *, int);
|
||||
#endif
|
||||
|
||||
typedef void _DL_FreeDataProc(void *free_me);
|
||||
typedef void _DL_FreeDataProc(proplist_t pl, void *free_data);
|
||||
|
||||
typedef int _DL_InitDataProc(proplist_t pl, void *init_data); /* prototype
|
||||
for function
|
||||
|
||||
Reference in New Issue
Block a user