Mercurial > hg > audiodb
diff soap.cpp @ 508:23c47e118bc6
Better soap memory correctness.
Pass the struct soap down through audioDB::query into Reporter::report
methods.
We go through the audioDB constructor and do everything on the stack.
We'll eventually also need to add a pointer member within the audioDB
object, so that non-local transfers of control (particularly
audioDB::error) can still allocate soap-specific memory.
Then use soap_malloc() not new[] for memory allocation of
adbQueryResponse data structures.
author | mas01cr |
---|---|
date | Tue, 13 Jan 2009 21:37:14 +0000 |
parents | 342822c2d49a |
children | cc2b97d020b1 |
line wrap: on
line diff
--- a/soap.cpp Tue Jan 13 21:37:10 2009 +0000 +++ b/soap.cpp Tue Jan 13 21:37:14 2009 +0000 @@ -294,7 +294,7 @@ argv[argv_counter] = NULL; try { - audioDB(argc, argv, &adbQueryResponse); + audioDB(argc, argv, soap, &adbQueryResponse); delete [] argv; return SOAP_OK; } catch (char *err) { @@ -361,7 +361,7 @@ try { - audioDB(argc, argv, &adbQueryResponse); + audioDB(argc, argv, soap, &adbQueryResponse); return SOAP_OK; } catch (char *err) { soap_receiver_fault(soap, err, "");