Bug 336991 Useless null check of jsdscript in _destroyJSDScript r=gijs sr=bz a=dsicore
authortimeless@mozdev.org
Sun, 23 Dec 2007 15:47:36 -0800
changeset 9644 a0a97d7f8ec8ce694b419c1a778c17165e145500
parent 9643 34887bbde40d19882f585220d4076aa2d78c793e
child 9645 789f62216e8f7da62bdf74ea043d544b5ec9b0c9
push idunknown
push userunknown
push dateunknown
reviewersgijs, bz, dsicore
bugs336991
milestone1.9b3pre
Bug 336991 Useless null check of jsdscript in _destroyJSDScript r=gijs sr=bz a=dsicore
js/jsd/jsd_scpt.c
--- a/js/jsd/jsd_scpt.c
+++ b/js/jsd/jsd_scpt.c
@@ -161,18 +161,17 @@ static void
 
     JS_REMOVE_LINK(&jsdscript->links);
     if(jsdscript->url)
         free(jsdscript->url);
 
     if (jsdscript->profileData)
         free(jsdscript->profileData);
     
-    if(jsdscript)
-        free(jsdscript);
+    free(jsdscript);
 }
 
 /***************************************************************************/
 
 #ifdef JSD_DUMP
 #ifndef XP_WIN
 void
 OutputDebugString (char *buf)