diff options
author | Alec Murphy <alec@checksum.fail> | 2017-06-02 22:21:01 -0400 |
---|---|---|
committer | Alec Murphy <alec@checksum.fail> | 2017-06-02 22:21:01 -0400 |
commit | 68c51c2362de1c0b6b035dedfa23b844ae740826 (patch) | |
tree | 800c4ef6a242ef8ff8061c7136fa5764ce918d59 | |
parent | f437b2ff1646b6d6e34429e4f0e27be70adc0495 (diff) |
FreeHGBD on return
-rwxr-xr-x | Uriel.HC | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -133,6 +133,7 @@ U0 U_InsertThumb(U8 *anchor, U8 *indent, U8 *outdent, U8 *url) size = Str2I64(HGBD_PARAM_BUF); if (size<1) { PopUpOk("Error loading image."); + FreeHGBD; return; }; BlkRead(HGBD,HGFS_BUF,1,(size/BLK_SIZE)+1); @@ -148,6 +149,7 @@ U0 U_InsertThumb(U8 *anchor, U8 *indent, U8 *outdent, U8 *url) DocPrintPartial(DocPut,"$ID,-14$"); }; DocAnchorFind(DocPut,anchor); + FreeHGBD; } U0 U_PlayWebM(U8 *anchor, U8 *url) @@ -167,11 +169,13 @@ U0 U_PlayWebM(U8 *anchor, U8 *url) size = Str2I64(HGBD_PARAM_BUF); if (size<1) { PopUpOk("Error loading WebM."); + FreeHGBD; return; }; mframes = Str2I64(HGBD_PARAM_BUF+128); if (mframes<1) { PopUpOk("Error loading WebM."); + FreeHGBD; return; }; BlkRead(HGBD,HGFS_BUF,1,(size/BLK_SIZE)+1); @@ -188,6 +192,7 @@ U0 U_PlayWebM(U8 *anchor, U8 *url) if (frame>(mframes-1)) { frame=0; }; }; DCFill; + FreeHGBD; } U0 U_Browser(U8 *url) @@ -207,6 +212,7 @@ U0 U_Browser(U8 *url) size = Str2I64(HGBD_PARAM_BUF); if (size<1) { PopUpOk("Bad URL."); + FreeHGBD; return; }; if (StrCmp(HGBD_PARAM_BUF+128,"download://")==0) { @@ -260,6 +266,7 @@ U0 U_Browser(U8 *url) StrCpy(Fs->parent_task->task_title, HGBD_PARAM_BUF+128); }; }; + FreeHGBD; } U0 U_HistNav(I64 index) @@ -272,6 +279,7 @@ U0 U_HistNav(I64 index) size = Str2I64(HGBD_PARAM_BUF); if (size<1) { PopUpOk("Bad URL."); + FreeHGBD; return; }; StrCpy(Fs->parent_task->task_title, HGBD_PARAM_BUF+128); @@ -280,6 +288,7 @@ U0 U_HistNav(I64 index) DocClear; DocPutS(DocPut,HGFS_BUF); DocTop; + FreeHGBD; } U0 U_Navigate(U8 *anchor, U8 *url) { |