mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-16 16:29:32 -06:00
Add FreePgfText function
This commit is contained in:
@@ -28,8 +28,6 @@ PgfExnType handleError(PgfExn err)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// conversions
|
||||
//
|
||||
// You have to remember to call PyMem_Free on these things!
|
||||
|
||||
PgfText *
|
||||
CString_AsPgfText(const char *s, size_t size) {
|
||||
@@ -154,6 +152,15 @@ PyList_AsPgfPrintContext(PyObject *pylist)
|
||||
return ctxt;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// freers
|
||||
|
||||
void
|
||||
FreePgfText(PgfText *txt)
|
||||
{
|
||||
PyMem_RawFree(txt);
|
||||
}
|
||||
|
||||
void
|
||||
FreePgfPrintContext(PgfPrintContext *ctxt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user