Skip to content

Commit 5df7f5a

Browse files
committed
Change gw_gvFreeLayout return type to void
1 parent e980b99 commit 5df7f5a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/layout_inline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ typedef struct GVC_s GVC_t;
55
typedef struct Agraph_s Agraph_t;
66

77
int gw_gvLayoutDot(GVC_t *gvc, Agraph_t* graph);
8-
int gw_gvFreeLayout(Agraph_t* graph);
8+
void gw_gvFreeLayout(Agraph_t* graph);
99
int gw_gvLayout(GVC_t *gvc, Agraph_t *g, const char *engine);
1010

1111
#endif

backend/src/wasm_module.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ pub export fn render(json_bytes: [*]u8, size: usize) WasmString {
333333
.output = null,
334334
});
335335
}
336-
defer _ = graphviz.gw_gvFreeLayout(graphptr);
336+
defer graphviz.gw_gvFreeLayout(graphptr);
337337

338338
var responseDot: ?[:0]const u8 = null;
339339
defer freeCString(responseDot);

0 commit comments

Comments
 (0)