Skip to content

Do we have memory leak issues? #132

Discussion options

You must be logged in to vote

With heaptrack specifically I have tried but was unsuccessful in removing the memory leak around brew.
I also managed to "prove" via g_object_weak_ref that the deallocation happens as you stated.
Minimal example for that for documentation purposes:

import std/[sequtils]
import owlkettle, owlkettle/[dataentries, playground, adw, widgetdef, common], owlkettle/bindings/gtk

viewable App:
  number: int

method view(app: AppState): Widget =
  result = gui:
    Window():
      title = "Scale Example"
      defaultSize = (800, 150)
      HeaderBar() {.addTitlebar.}:
        insert(app.toAutoFormMenu()) {.addRight.}
      
      Box(orient = OrientY):
        Box() {.expand: false.}:
          Bu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PhilippMDoerner
Comment options

Answer selected by PhilippMDoerner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants