diff options
author | John Ankarström <john@ankarstrom.se> | 2022-02-15 19:42:23 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-02-15 19:42:23 +0100 |
commit | 3b05844d760424859912d3d673dd8fc2be73d96f (patch) | |
tree | ec7c764889a741424c3531e82afd4bd894503e02 /c/main.c | |
parent | c1eee2b46cd5643ba8efb98b2cd598ef47c4daf6 (diff) | |
download | EpisodeBrowser-3b05844d760424859912d3d673dd8fc2be73d96f.tar.gz |
Fix memory bug in DlvShowEpisode.
I forgot to call PL_new_term_ref for tValue.
Diffstat (limited to 'c/main.c')
-rw-r--r-- | c/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -23,6 +23,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, HWND hWnd; MSG msg; INITCOMMONCONTROLSEX icc; + //term_t t; WNDCLASSEX wc; /* Initialize Prolog. */ @@ -33,6 +34,14 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, if (!PL_initialise(1, rgArgs)) PL_halt(1); + //t = PL_new_term_refs(1); + //if (!PL_put_atom_chars(t+0, "false")) + // return 0; + //if (!PL_call_predicate(NULL, PL_Q_NORMAL, + // PL_predicate("set_prolog_gc_thread", 1, "user"), + // t)) + // return 0; + Attach(); /* Create window. */ |