Fix crash on removing placeholder from launchbar.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Fri, 21 Feb 2014 14:13:58 +0000 (16:13 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Fri, 21 Feb 2014 14:13:58 +0000 (16:13 +0200)
src/plugins/launchbar.c

index 1758dc1..3722620 100644 (file)
@@ -86,7 +86,8 @@ static void launchbar_destructor(gpointer user_data);
 /* Deallocate a LaunchButton. */
 static void launchbutton_free(LaunchButton * btn)
 {
-    fm_file_info_unref(btn->fi);
+    if (btn->fi)
+        fm_file_info_unref(btn->fi);
     if (btn->dd)
         g_object_unref(btn->dd);
     g_free(btn);