20 #include <freerdp/config.h>
22 #include <freerdp/client/geometry.h>
23 #include <winpr/interlocked.h>
25 void mappedGeometryRef(MAPPED_GEOMETRY* g)
27 InterlockedIncrement(&g->refCounter);
30 void mappedGeometryUnref(MAPPED_GEOMETRY* g)
35 if (InterlockedDecrement(&g->refCounter))
38 g->MappedGeometryUpdate = NULL;
39 g->MappedGeometryClear = NULL;
41 free(g->geometry.rects);