Don't free mem, we need to wait until the event is processed.

SVN revision: 17046
This commit is contained in:
sebastid 2005-09-28 19:46:58 +00:00 committed by sebastid
parent 13d9bc775a
commit 1ca51e9f2f
1 changed files with 4 additions and 0 deletions

View File

@ -948,12 +948,14 @@ break;
count++; count++;
} }
END_RESPONSE(r, E_RESPONSE_MODULE_LIST); END_RESPONSE(r, E_RESPONSE_MODULE_LIST);
#if 0
if (r->count) if (r->count)
{ {
for (count = 0; count < r->count; count++) for (count = 0; count < r->count; count++)
free(r->modules[count]); free(r->modules[count]);
free(r->modules); free(r->modules);
} }
#endif
} }
END_GENERIC(); END_GENERIC();
#endif #endif
@ -1491,7 +1493,9 @@ break;
else if (!strcmp(type, "backgrounds")) else if (!strcmp(type, "backgrounds"))
res = E_RESPONSE_BACKGROUND_DIRS_LIST; res = E_RESPONSE_BACKGROUND_DIRS_LIST;
END_RESPONSE(r, res); END_RESPONSE(r, res);
#if 0
if (r->dirs) free(r->dirs); if (r->dirs) free(r->dirs);
#endif
} }
END_GENERIC(); END_GENERIC();
#endif #endif