aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Murphy <alec@checksum.fail>2017-06-02 22:21:01 -0400
committerAlec Murphy <alec@checksum.fail>2017-06-02 22:21:01 -0400
commit68c51c2362de1c0b6b035dedfa23b844ae740826 (patch)
tree800c4ef6a242ef8ff8061c7136fa5764ce918d59
parentf437b2ff1646b6d6e34429e4f0e27be70adc0495 (diff)
FreeHGBD on return
-rwxr-xr-xUriel.HC9
1 files changed, 9 insertions, 0 deletions
diff --git a/Uriel.HC b/Uriel.HC
index e88a946..aead300 100755
--- a/Uriel.HC
+++ b/Uriel.HC
@@ -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) {