]> granicus.if.org Git - graphviz/commit
smyrna on_gvprbuttonsave_clicked: fix memory leak
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 10 Oct 2022 15:13:56 +0000 (08:13 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Oct 2022 00:32:13 +0000 (17:32 -0700)
commit643f9d4a89b349263a20cc4251af6acb8f254215
treefbafe9e37ecb9c43378ff20f8b40c55f4ada599b
parent99cc6ba2ab9d70da3def6833b4fce0cc3f338f75
smyrna on_gvprbuttonsave_clicked: fix memory leak

The `gtk_text_buffer_get_text` docs¹ note:

  Return value
  …
  The caller of the method takes ownership of the data, and is responsible for
  freeing it.

¹ https://docs.gtk.org/gtk4/method.TextBuffer.get_text.html
cmd/smyrna/gui/menucallbacks.c